aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/stylesheet_loader.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-03-14 16:09:41 +0100
committerSimon Sapin <simon.sapin@exyr.org>2017-03-19 22:30:31 +0100
commitc5a7294e05a3b370981170ea273acb60b6116bc0 (patch)
treedbac59e9b0f90ecc0dd907d430660ef6f6f8abce /components/script/stylesheet_loader.rs
parent8feb9e80477376a529b8c5ce9951e78f6048f054 (diff)
downloadservo-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.rs2
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()));