mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Parse stylesheets without acquiring a shared lock.
This commit is contained in:
parent
cc046300f0
commit
d9491187dc
4 changed files with 42 additions and 42 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue