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/stylesheet_loader.rs | |
parent | b213daaa8818ff59557973c01c7d2612e9389abc (diff) | |
download | servo-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.rs | 2 |
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()); |