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

RESOLVED FIXED

Status

()

Core
CSS Parsing and Computation
P3
normal
RESOLVED FIXED
a year ago
a year ago

People

(Reporter: hiro, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
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))'.
(Reporter)

Comment 1

a year ago
Emilio fixed this in https://github.com/servo/servo/pull/16148 .

Thank you!
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.