mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Replace RwLock<CssRules> with Locked<CssRules>
This commit is contained in:
parent
b213daaa88
commit
f35b4e27b3
15 changed files with 85 additions and 52 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue