Skip to content

Commit

Permalink
Merge pull request #739 from w3c/511-incorrect-computation-layout-size
Browse files Browse the repository at this point in the history
Fix incorrect computation in Compute Layout and Allocation Size when figuring out the destination rect
  • Loading branch information
Djuffin authored Nov 1, 2023
2 parents 3c9e353 + 51ee334 commit 1fd13ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -4093,10 +4093,12 @@
to the nearest integer.
9. Set |computedLayout|'s [=computed plane layout/sourceLeftBytes=] to
the result of the integer division of
truncated |parsedRect|.{{DOMRectInit/x}} by |sampleWidthBytes|.
truncated |parsedRect|.{{DOMRectInit/x}} by |sampleWidth|,
multiplied by |sampleBytes|.
10. Set |computedLayout|'s [=computed plane layout/sourceWidthBytes=] to
the result of the integer division of
truncated |parsedRect|.{{DOMRectInit/width}} by |sampleWidthBytes|.
truncated |parsedRect|.{{DOMRectInit/width}} by |sampleHeight|,
multiplied by |sampleBytes|.
11. If |layout| is not `undefined`:
1. Let |planeLayout| be the {{PlaneLayout}} in |layout| at position
|planeIndex|.
Expand Down

0 comments on commit 1fd13ab

Please sign in to comment.