diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-03-18 14:25:25 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-03-19 22:30:40 +0100 |
commit | d9491187dc7509b4114bfb3d606986fac28e5ff8 (patch) | |
tree | 766e53909e6884756f0d34b015f07d13b47ca755 /components/script/stylesheet_loader.rs | |
parent | cc046300f0390eadfcff65dcc6d8cea5bed9513e (diff) | |
download | servo-d9491187dc7509b4114bfb3d606986fac28e5ff8.tar.gz servo-d9491187dc7509b4114bfb3d606986fac28e5ff8.zip |
Parse stylesheets without acquiring a shared lock.
Diffstat (limited to 'components/script/stylesheet_loader.rs')
-rw-r--r-- | components/script/stylesheet_loader.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/components/script/stylesheet_loader.rs b/components/script/stylesheet_loader.rs index fc838319695..4c2f06322a4 100644 --- a/components/script/stylesheet_loader.rs +++ b/components/script/stylesheet_loader.rs @@ -159,13 +159,10 @@ impl FetchResponseListener for StylesheetContext { } } StylesheetContextSource::Import(ref stylesheet) => { - let mut guard = document.style_shared_lock().write(); - Stylesheet::update_from_bytes(&stylesheet, &data, protocol_encoding_label, Some(environment_encoding), - &mut guard, Some(&loader), win.css_error_reporter(), ParserContextExtraData::default()); |