Skip to content

Commit 1fd13ab

Browse files
authored
Merge pull request #739 from w3c/511-incorrect-computation-layout-size
Fix incorrect computation in Compute Layout and Allocation Size when figuring out the destination rect
2 parents 3c9e353 + 51ee334 commit 1fd13ab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.src.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4093,10 +4093,12 @@
40934093
to the nearest integer.
40944094
9. Set |computedLayout|'s [=computed plane layout/sourceLeftBytes=] to
40954095
the result of the integer division of
4096-
truncated |parsedRect|.{{DOMRectInit/x}} by |sampleWidthBytes|.
4096+
truncated |parsedRect|.{{DOMRectInit/x}} by |sampleWidth|,
4097+
multiplied by |sampleBytes|.
40974098
10. Set |computedLayout|'s [=computed plane layout/sourceWidthBytes=] to
40984099
the result of the integer division of
4099-
truncated |parsedRect|.{{DOMRectInit/width}} by |sampleWidthBytes|.
4100+
truncated |parsedRect|.{{DOMRectInit/width}} by |sampleHeight|,
4101+
multiplied by |sampleBytes|.
41004102
11. If |layout| is not `undefined`:
41014103
1. Let |planeLayout| be the {{PlaneLayout}} in |layout| at position
41024104
|planeIndex|.

0 commit comments

Comments
 (0)