Skip to content

Commit bb03534

Browse files
committed
Fix unused variable
1 parent 58270fa commit bb03534

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

index.src.html

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4086,25 +4086,23 @@
40864086
subsample for |plane|.
40874087
4. Let |sampleHeight| be the vertical [=sub-sampling factor=] of each
40884088
subsample for |plane|.
4089-
5. Let |sampleWidthBytes| be the product of multiplying |sampleWidth| by
4090-
|sampleBytes|.
4091-
6. Let |computedLayout| be a new [=computed plane layout=].
4092-
7. Set |computedLayout|'s [=computed plane layout/sourceTop=] to the
4089+
5. Let |computedLayout| be a new [=computed plane layout=].
4090+
6. Set |computedLayout|'s [=computed plane layout/sourceTop=] to the
40934091
result of the division of truncated |parsedRect|.{{DOMRectInit/y}}
40944092
by |sampleHeight|, rounded up to the nearest integer.
4095-
8. Set |computedLayout|'s [=computed plane layout/sourceHeight=] to the
4093+
7. Set |computedLayout|'s [=computed plane layout/sourceHeight=] to the
40964094
result of the division of truncated
40974095
|parsedRect|.{{DOMRectInit/height}} by |sampleHeight|, rounded up
40984096
to the nearest integer.
4099-
9. Set |computedLayout|'s [=computed plane layout/sourceLeftBytes=] to
4097+
8. Set |computedLayout|'s [=computed plane layout/sourceLeftBytes=] to
41004098
the result of the integer division of
41014099
truncated |parsedRect|.{{DOMRectInit/x}} by |sampleWidth|,
41024100
multiplied by |sampleBytes|.
4103-
10. Set |computedLayout|'s [=computed plane layout/sourceWidthBytes=] to
4101+
9. Set |computedLayout|'s [=computed plane layout/sourceWidthBytes=] to
41044102
the result of the integer division of
41054103
truncated |parsedRect|.{{DOMRectInit/width}} by |sampleHeight|,
41064104
multiplied by |sampleBytes|.
4107-
11. If |layout| is not `undefined`:
4105+
10. If |layout| is not `undefined`:
41084106
1. Let |planeLayout| be the {{PlaneLayout}} in |layout| at position
41094107
|planeIndex|.
41104108
2. If |planeLayout|.{{PlaneLayout/stride}} is less than
@@ -4114,7 +4112,7 @@
41144112
[=computed plane layout/destinationOffset=].
41154113
4. Assign |planeLayout|.{{PlaneLayout/stride}} to |computedLayout|'s
41164114
[=computed plane layout/destinationStride=].
4117-
12. Otherwise:
4115+
11. Otherwise:
41184116

41194117
NOTE: If an explicit layout was not provided, the following steps
41204118
default to tight packing.
@@ -4124,23 +4122,23 @@
41244122
2. Assign |computedLayout|'s
41254123
[=computed plane layout/sourceWidthBytes=] to
41264124
|computedLayout|'s [=computed plane layout/destinationStride=].
4127-
13. Let |planeSize| be the product of multiplying |computedLayout|'s
4125+
12. Let |planeSize| be the product of multiplying |computedLayout|'s
41284126
[=computed plane layout/destinationStride=] and
41294127
[=computed plane layout/sourceHeight=].
4130-
14. Let |planeEnd| be the sum of |planeSize| and |computedLayout|'s
4128+
13. Let |planeEnd| be the sum of |planeSize| and |computedLayout|'s
41314129
[=computed plane layout/destinationOffset=].
4132-
15. If |planeSize| or |planeEnd| is greater than maximum range of
4130+
14. If |planeSize| or |planeEnd| is greater than maximum range of
41334131
{{unsigned long}}, return a {{TypeError}}.
4134-
16. Append |planeEnd| to |endOffsets|.
4135-
17. Assign the maximum of |minAllocationSize| and |planeEnd| to
4132+
15. Append |planeEnd| to |endOffsets|.
4133+
16. Assign the maximum of |minAllocationSize| and |planeEnd| to
41364134
|minAllocationSize|.
41374135

41384136
NOTE: The above step uses a maximum to allow for the
41394137
possibility that user specified plane offsets reorder
41404138
planes.
41414139

4142-
18. Let |earlierPlaneIndex| be `0`.
4143-
19. While |earlierPlaneIndex| is less than |planeIndex|.
4140+
17. Let |earlierPlaneIndex| be `0`.
4141+
18. While |earlierPlaneIndex| is less than |planeIndex|.
41444142
1. Let |earlierLayout| be `computedLayouts[earlierPlaneIndex]`.
41454143
2. If `endOffsets[planeIndex]` is less than or equal to
41464144
|earlierLayout|'s [=computed plane layout/destinationOffset=] or
@@ -4153,8 +4151,8 @@
41534151

41544152
3. Otherwise, return a {{TypeError}}.
41554153
4. Increment |earlierPlaneIndex| by `1`.
4156-
20. Append |computedLayout| to |computedLayouts|.
4157-
21. Increment |planeIndex| by `1`.
4154+
19. Append |computedLayout| to |computedLayouts|.
4155+
20. Increment |planeIndex| by `1`.
41584156
8. Let |combinedLayout| be a new [=combined buffer layout=], initialized as
41594157
follows:
41604158
1. Assign |computedLayouts| to

0 commit comments

Comments
 (0)