mirror of
https://github.com/servo/servo.git
synced 2025-08-01 03:30:33 +01:00
style: Remove the Mutex from new_animations_sender by moving it to the local StyleContext.
As a follow-up, we could move all the data living under a mutex in the SharedLayoutContext only in order to create the local context to the same place. This should increase animation performance when there are multiple animations in one page that happen to be on different threads.
This commit is contained in:
parent
5478e605ae
commit
203d2a62c2
15 changed files with 166 additions and 134 deletions
|
@ -65,7 +65,7 @@ pub trait ElementExt: Element {
|
|||
|
||||
// NB: The `Clone` trait is here for convenience due to:
|
||||
// https://github.com/rust-lang/rust/issues/26925
|
||||
pub trait SelectorImplExt : SelectorImpl + Clone + Debug + Sized {
|
||||
pub trait SelectorImplExt : SelectorImpl + Clone + Debug + Sized + 'static {
|
||||
type ComputedValues: properties::ComputedValues;
|
||||
|
||||
fn pseudo_element_cascade_type(pseudo: &Self::PseudoElement) -> PseudoElementCascadeType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue