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:
Emilio Cobos Álvarez 2017-11-09 16:01:55 +01:00
parent 49fe3d1c9f
commit 6704122927
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 13 additions and 72 deletions

View file

@ -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);
}