aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/stylesheet_loader.rs
diff options
context:
space:
mode:
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());