diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-03-18 00:47:08 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-03-19 22:30:37 +0100 |
commit | aeffca2a5900ebcf91063e9c7771b642817cb6bd (patch) | |
tree | 35a2a3513088fa303d96ed522d5c12eb29d6518c /components/script_layout_interface/wrapper_traits.rs | |
parent | 57724e5a3755a757e502658094dfda171c78ba78 (diff) | |
download | servo-aeffca2a5900ebcf91063e9c7771b642817cb6bd.tar.gz servo-aeffca2a5900ebcf91063e9c7771b642817cb6bd.zip |
Replace RwLock<StyleRule> with Locked<StyleRule>
Diffstat (limited to 'components/script_layout_interface/wrapper_traits.rs')
-rw-r--r-- | components/script_layout_interface/wrapper_traits.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs index 0e7cb160334..86e293d4a05 100644 --- a/components/script_layout_interface/wrapper_traits.rs +++ b/components/script_layout_interface/wrapper_traits.rs @@ -405,6 +405,7 @@ pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug + let mut data = self.get_style_data().unwrap().borrow_mut(); let new_style = context.stylist.precomputed_values_for_pseudo( + &context.guards, &style_pseudo, Some(data.styles().primary.values()), CascadeFlags::empty()); @@ -421,6 +422,7 @@ pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug + let new_style = context.stylist .lazily_compute_pseudo_element_style( + &context.guards, unsafe { &self.unsafe_get() }, &style_pseudo, data.styles().primary.values()); |