diff options
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 cdc93c9808b..26dffa5fe56 100644 --- a/components/script/stylesheet_loader.rs +++ b/components/script/stylesheet_loader.rs @@ -152,12 +152,14 @@ impl FetchResponseListener for StylesheetContext { let is_stylesheet_load_applicable = self.request_generation_id.map_or(true, |gen| gen == link.get_request_generation_id()); if is_stylesheet_load_applicable { + let shared_lock = document.style_shared_lock().clone(); let sheet = Arc::new(Stylesheet::from_bytes(&data, final_url, protocol_encoding_label, Some(environment_encoding), Origin::Author, media.take().unwrap(), + shared_lock, Some(&loader), win.css_error_reporter(), ParserContextExtraData::default())); |