diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-03-17 11:01:13 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-03-19 22:30:35 +0100 |
commit | f35b4e27b3e0b748e10662cfb6f18873258483b7 (patch) | |
tree | 841d5444c277958d74360a6d5bc3e77977b73ac4 /components/script/dom/cssstylesheet.rs | |
parent | b213daaa8818ff59557973c01c7d2612e9389abc (diff) | |
download | servo-f35b4e27b3e0b748e10662cfb6f18873258483b7.tar.gz servo-f35b4e27b3e0b748e10662cfb6f18873258483b7.zip |
Replace RwLock<CssRules> with Locked<CssRules>
Diffstat (limited to 'components/script/dom/cssstylesheet.rs')
-rw-r--r-- | components/script/dom/cssstylesheet.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/cssstylesheet.rs b/components/script/dom/cssstylesheet.rs index f8397a732c2..ee097313c2e 100644 --- a/components/script/dom/cssstylesheet.rs +++ b/components/script/dom/cssstylesheet.rs @@ -16,6 +16,7 @@ use dom::window::Window; use dom_struct::dom_struct; use std::cell::Cell; use std::sync::Arc; +use style::shared_lock::SharedRwLock; use style::stylesheets::Stylesheet as StyleStyleSheet; #[dom_struct] @@ -72,6 +73,10 @@ impl CSSStyleSheet { } } + pub fn shared_lock(&self) -> &SharedRwLock { + &self.style_stylesheet.shared_lock + } + pub fn style_stylesheet(&self) -> &StyleStyleSheet { &self.style_stylesheet } |