Skip to content

Commit 9b87555

Browse files
authored
Merge pull request #741 from w3c/misc-fixes
Fix unused variable
2 parents 072c8e5 + bb03534 commit 9b87555

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
@@ -4091,25 +4091,23 @@
40914091
subsample for |plane|.
40924092
4. Let |sampleHeight| be the vertical [=sub-sampling factor=] of each
40934093
subsample for |plane|.
4094-
5. Let |sampleWidthBytes| be the product of multiplying |sampleWidth| by
4095-
|sampleBytes|.
4096-
6. Let |computedLayout| be a new [=computed plane layout=].
4097-
7. Set |computedLayout|'s [=computed plane layout/sourceTop=] to the
4094+
5. Let |computedLayout| be a new [=computed plane layout=].
4095+
6. Set |computedLayout|'s [=computed plane layout/sourceTop=] to the
40984096
result of the division of truncated |parsedRect|.{{DOMRectInit/y}}
40994097
by |sampleHeight|, rounded up to the nearest integer.
4100-
8. Set |computedLayout|'s [=computed plane layout/sourceHeight=] to the
4098+
7. Set |computedLayout|'s [=computed plane layout/sourceHeight=] to the
41014099
result of the division of truncated
41024100
|parsedRect|.{{DOMRectInit/height}} by |sampleHeight|, rounded up
41034101
to the nearest integer.
4104-
9. Set |computedLayout|'s [=computed plane layout/sourceLeftBytes=] to
4102+
8. Set |computedLayout|'s [=computed plane layout/sourceLeftBytes=] to
41054103
the result of the integer division of
41064104
truncated |parsedRect|.{{DOMRectInit/x}} by |sampleWidth|,
41074105
multiplied by |sampleBytes|.
4108-
10. Set |computedLayout|'s [=computed plane layout/sourceWidthBytes=] to
4106+
9. Set |computedLayout|'s [=computed plane layout/sourceWidthBytes=] to
41094107
the result of the integer division of
41104108
truncated |parsedRect|.{{DOMRectInit/width}} by |sampleHeight|,
41114109
multiplied by |sampleBytes|.
4112-
11. If |layout| is not `undefined`:
4110+
10. If |layout| is not `undefined`:
41134111
1. Let |planeLayout| be the {{PlaneLayout}} in |layout| at position
41144112
|planeIndex|.
41154113
2. If |planeLayout|.{{PlaneLayout/stride}} is less than
@@ -4119,7 +4117,7 @@
41194117
[=computed plane layout/destinationOffset=].
41204118
4. Assign |planeLayout|.{{PlaneLayout/stride}} to |computedLayout|'s
41214119
[=computed plane layout/destinationStride=].
4122-
12. Otherwise:
4120+
11. Otherwise:
41234121

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

41434141
NOTE: The above step uses a maximum to allow for the
41444142
possibility that user specified plane offsets reorder
41454143
planes.
41464144

4147-
18. Let |earlierPlaneIndex| be `0`.
4148-
19. While |earlierPlaneIndex| is less than |planeIndex|.
4145+
17. Let |earlierPlaneIndex| be `0`.
4146+
18. While |earlierPlaneIndex| is less than |planeIndex|.
41494147
1. Let |earlierLayout| be `computedLayouts[earlierPlaneIndex]`.
41504148
2. If `endOffsets[planeIndex]` is less than or equal to
41514149
|earlierLayout|'s [=computed plane layout/destinationOffset=] or
@@ -4158,8 +4156,8 @@
41584156

41594157
3. Otherwise, return a {{TypeError}}.
41604158
4. Increment |earlierPlaneIndex| by `1`.
4161-
20. Append |computedLayout| to |computedLayouts|.
4162-
21. Increment |planeIndex| by `1`.
4159+
19. Append |computedLayout| to |computedLayouts|.
4160+
20. Increment |planeIndex| by `1`.
41634161
8. Let |combinedLayout| be a new [=combined buffer layout=], initialized as
41644162
follows:
41654163
1. Assign |computedLayouts| to

0 commit comments

Comments
 (0)