mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Get rid of CurrentElementInfo.
It's out-of-band data I never liked, and the code has changed enough from when it was introduced, that now all of the information it stores can be local.
This commit is contained in:
parent
49fe3d1c9f
commit
6704122927
3 changed files with 13 additions and 72 deletions
|
@ -298,13 +298,11 @@ trait PrivateMatchMethods: TElement {
|
|||
use animation;
|
||||
use dom::TNode;
|
||||
|
||||
let possibly_expired_animations =
|
||||
&mut context.thread_local.current_element_info.as_mut().unwrap()
|
||||
.possibly_expired_animations;
|
||||
let mut possibly_expired_animations = vec![];
|
||||
let shared_context = context.shared;
|
||||
if let Some(ref mut old) = *old_values {
|
||||
self.update_animations_for_cascade(shared_context, old,
|
||||
possibly_expired_animations,
|
||||
&mut possibly_expired_animations,
|
||||
&context.thread_local.font_metrics_provider);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue