mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Hoist possibly_expired_animations into CurrentElementInfo.
The current mechanism requires threading a lot of this state through a bunch of callsites that are several layers of abstraction above the code that actually uses this vector (which is only compiled for servo). Putting it in CurrentElementInfo gets it nicely out of the way. MozReview-Commit-ID: 9PLBKcJreN0
This commit is contained in:
parent
3beaa8d2e9
commit
788d9ad0aa
3 changed files with 23 additions and 24 deletions
|
@ -395,7 +395,9 @@ fn resolve_style_internal<E, F>(context: &mut StyleContext<E>,
|
|||
}
|
||||
|
||||
// Compute our style.
|
||||
context.thread_local.begin_element(element, &data);
|
||||
element.match_and_cascade(context, &mut data, StyleSharingBehavior::Disallow);
|
||||
context.thread_local.end_element(element);
|
||||
|
||||
// Conservatively mark us as having dirty descendants, since there might
|
||||
// be other unstyled siblings we miss when walking straight up the parent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue