diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-03-14 16:09:41 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-03-19 22:30:31 +0100 |
commit | c5a7294e05a3b370981170ea273acb60b6116bc0 (patch) | |
tree | dbac59e9b0f90ecc0dd907d430660ef6f6f8abce /components/script/stylesheet_loader.rs | |
parent | 8feb9e80477376a529b8c5ce9951e78f6048f054 (diff) | |
download | servo-c5a7294e05a3b370981170ea273acb60b6116bc0.tar.gz servo-c5a7294e05a3b370981170ea273acb60b6116bc0.zip |
Replace RwLock<MediaList> with shared_lock::Locked<MediaList>
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())); |