aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/cssstylesheet.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-03-17 11:01:13 +0100
committerSimon Sapin <simon.sapin@exyr.org>2017-03-19 22:30:35 +0100
commitf35b4e27b3e0b748e10662cfb6f18873258483b7 (patch)
tree841d5444c277958d74360a6d5bc3e77977b73ac4 /components/script/dom/cssstylesheet.rs
parentb213daaa8818ff59557973c01c7d2612e9389abc (diff)
downloadservo-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.rs5
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
}