aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/servo.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <me@emiliocobos.me>2016-06-29 20:04:30 -0700
committerEmilio Cobos Álvarez <me@emiliocobos.me>2016-07-01 13:48:06 -0700
commit203d2a62c24ca3d8b07e4ec492fc53bb30bbeedc (patch)
tree979b0367ce41c744c270a54092c962b916f5a6e9 /components/style/servo.rs
parent5478e605aef93cc384b709688cc68e3ed854a68b (diff)
downloadservo-203d2a62c24ca3d8b07e4ec492fc53bb30bbeedc.tar.gz
servo-203d2a62c24ca3d8b07e4ec492fc53bb30bbeedc.zip
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.
Diffstat (limited to 'components/style/servo.rs')
-rw-r--r--components/style/servo.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/style/servo.rs b/components/style/servo.rs
index b592104832a..d5605a62832 100644
--- a/components/style/servo.rs
+++ b/components/style/servo.rs
@@ -15,4 +15,5 @@ pub type Stylesheet = stylesheets::Stylesheet<ServoSelectorImpl>;
pub type PrivateStyleData = data::PrivateStyleData<ServoSelectorImpl, ServoComputedValues>;
pub type Stylist = selector_matching::Stylist<ServoSelectorImpl>;
pub type SharedStyleContext = context::SharedStyleContext<ServoSelectorImpl>;
+pub type LocalStyleContextCreationInfo = context::LocalStyleContextCreationInfo<ServoSelectorImpl>;
pub type Animation = animation::Animation<ServoSelectorImpl>;