mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: paint-order parsing has off-by-one error.
A couple of firefox only WPT failure caused by this off-by-one bug. Differential Revision: https://phabricator.services.mozilla.com/D35630
This commit is contained in:
parent
2fba62aba9
commit
5db88db8fc
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ impl Parse for SVGPaintOrder {
|
||||||
|
|
||||||
// fill in rest
|
// fill in rest
|
||||||
for i in pos..PAINT_ORDER_COUNT {
|
for i in pos..PAINT_ORDER_COUNT {
|
||||||
for paint in 0..PAINT_ORDER_COUNT {
|
for paint in 1..(PAINT_ORDER_COUNT + 1) {
|
||||||
// if not seen, set bit at position, mark as seen
|
// if not seen, set bit at position, mark as seen
|
||||||
if (seen & (1 << paint)) == 0 {
|
if (seen & (1 << paint)) == 0 {
|
||||||
seen |= 1 << paint;
|
seen |= 1 << paint;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue