mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Refactor StylesheetLoader so impls do not need to acquire a shared lock.
This fixes a deadlock: https://github.com/servo/servo/pull/16014#issuecomment-287527067
This commit is contained in:
parent
1bacd0eb15
commit
1e38013783
4 changed files with 84 additions and 59 deletions
|
@ -291,9 +291,8 @@ impl HTMLLinkElement {
|
|||
// doesn't match.
|
||||
let loader = StylesheetLoader::for_element(self.upcast());
|
||||
loader.load(StylesheetContextSource::LinkElement {
|
||||
url: url,
|
||||
media: Some(media),
|
||||
}, cors_setting, integrity_metadata.to_owned());
|
||||
}, url, cors_setting, integrity_metadata.to_owned());
|
||||
}
|
||||
|
||||
fn handle_favicon_url(&self, rel: &str, href: &str, sizes: &Option<String>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue