aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/stylesheet_loader.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/stylesheet_loader.rs
parentb213daaa8818ff59557973c01c7d2612e9389abc (diff)
downloadservo-f35b4e27b3e0b748e10662cfb6f18873258483b7.tar.gz
servo-f35b4e27b3e0b748e10662cfb6f18873258483b7.zip
Replace RwLock<CssRules> with Locked<CssRules>
Diffstat (limited to 'components/script/stylesheet_loader.rs')
-rw-r--r--components/script/stylesheet_loader.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/stylesheet_loader.rs b/components/script/stylesheet_loader.rs
index 26dffa5fe56..79b90be7426 100644
--- a/components/script/stylesheet_loader.rs
+++ b/components/script/stylesheet_loader.rs
@@ -175,10 +175,12 @@ impl FetchResponseListener for StylesheetContext {
}
StylesheetContextSource::Import(ref import) => {
let import = import.read();
+ let mut guard = document.style_shared_lock().write();
Stylesheet::update_from_bytes(&import.stylesheet,
&data,
protocol_encoding_label,
Some(environment_encoding),
+ &mut guard,
Some(&loader),
win.css_error_reporter(),
ParserContextExtraData::default());