mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
parent
3afa150cd8
commit
6a37877734
3 changed files with 37 additions and 19 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
//! Traversing the DOM tree; the bloom filter.
|
||||
|
||||
use animation;
|
||||
use context::{SharedStyleContext, StyleContext};
|
||||
use dom::{OpaqueNode, TElement, TNode, TRestyleDamage, UnsafeNode};
|
||||
use matching::{ApplicableDeclarations, ElementMatchMethods, MatchMethods, StyleSharingResult};
|
||||
|
@ -11,6 +12,7 @@ use selector_impl::SelectorImplExt;
|
|||
use selectors::Element;
|
||||
use selectors::bloom::BloomFilter;
|
||||
use std::cell::RefCell;
|
||||
use std::sync::Arc;
|
||||
use tid::tid;
|
||||
use util::opts;
|
||||
use values::HasViewportPercentage;
|
||||
|
@ -232,6 +234,13 @@ pub fn recalc_style_at<'a, N, C>(context: &'a C,
|
|||
node.set_restyle_damage(damage);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Finish any expired transitions.
|
||||
animation::complete_expired_transitions(
|
||||
node.opaque(),
|
||||
node.mutate_data().unwrap().style.as_mut().unwrap(),
|
||||
context.shared_context()
|
||||
);
|
||||
}
|
||||
|
||||
let unsafe_layout_node = node.to_unsafe();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue