Closed Bug 1350751 Opened 7 years ago Closed 7 years ago

stylo: Cleanup animation-only flag handling in traversal.rs

Categories

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

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: hiro, Unassigned)

References

Details

In bug 1344966, we introduce animation-only restyles.  With regard to the code which will be added in bug 1344966, Emilio told me that we can simplify the code around propagating animation restyle hint if propagate() method takes &mut self.

Also he suggested to add an assertion 'debug_assert!(shared_context.animation_only_traversal || !hint.contains(RESTYLE_ANIMATIONS))'.
Emilio fixed this in https://github.com/servo/servo/pull/16148 .

Thank you!
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.