aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/context.rs')
-rw-r--r--components/style/context.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/context.rs b/components/style/context.rs
index ffe9668bd32..e8e2ee1cc13 100644
--- a/components/style/context.rs
+++ b/components/style/context.rs
@@ -84,10 +84,10 @@ pub struct ThreadLocalStyleContext {
}
impl ThreadLocalStyleContext {
- pub fn new(local_context_creation_data: &ThreadLocalStyleContextCreationInfo) -> Self {
+ pub fn new(shared: &SharedStyleContext) -> Self {
ThreadLocalStyleContext {
style_sharing_candidate_cache: RefCell::new(StyleSharingCandidateCache::new()),
- new_animations_sender: local_context_creation_data.new_animations_sender.clone(),
+ new_animations_sender: shared.local_context_creation_data.lock().unwrap().new_animations_sender.clone(),
}
}
}