mirror of
https://github.com/servo/servo
synced 2026-04-26 17:45:19 +02:00
Replace RwLock<CssRules> with Locked<CssRules>
This commit is contained in:
@@ -175,10 +175,12 @@ impl FetchResponseListener for StylesheetContext {
|
||||
}
|
||||
StylesheetContextSource::Import(ref import) => {
|
||||
let import = import.read();
|
||||
let mut guard = document.style_shared_lock().write();
|
||||
Stylesheet::update_from_bytes(&import.stylesheet,
|
||||
&data,
|
||||
protocol_encoding_label,
|
||||
Some(environment_encoding),
|
||||
&mut guard,
|
||||
Some(&loader),
|
||||
win.css_error_reporter(),
|
||||
ParserContextExtraData::default());
|
||||
|
||||
Reference in New Issue
Block a user