Closed Bug 1354487 Opened 8 years ago Closed 8 years ago

stylo: StoredRestyleHint::propagate behaves incorrectly during animation only restyle

Categories

(Core :: CSS Parsing and Computation, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: heycam, Assigned: hiro)

References

Details

Attachments

(1 file)

Currently StoredRestyleHint::propagate checks whether there are any animation restyle hints, and if so, removes them and returns null, and preserves any non-animation hints for the normal restyle that will happen later. But if we are in an animation-only restyle, and a particular element has no animation restyle hints, we will fall through to the normal restyle handling, which clears the current restyle hint, and returns the propagated hint for children. We should not be touching the non-animation hints in an animation restyle.
This seems like it would cause incremental restyle bugs after animations. Over to Hiro.
Assignee: nobody → hikezoe
Priority: -- → P1
Comment on attachment 8857735 [details] Bug 1354487 - Preserve restyle hints other than animation hints in propagate() during animation-only restyle. https://reviewboard.mozilla.org/r/129682/#review132312 ::: servo/components/style/data.rs:199 (Diff revision 1) > // If we have RESTYLE_CSS_ANIMATIONS restyle hint, it means we are in > // the middle of an animation only restyle. In that case, we don't need > // to propagate any restyle hints, and we need to remove ourselves. Please update this comment, since it's not whether we have RESTYLE_CSS_ANIMATIONS that we use to decide how to propagate.
Attachment #8857735 - Flags: review?(cam) → review+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: