mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove unsound Root::deref() calls in CSSStyleDeclaration.
This commit is contained in:
parent
740ee84809
commit
ff96d8ccd4
1 changed files with 2 additions and 0 deletions
|
@ -219,6 +219,7 @@ impl<'a> CSSStyleDeclarationMethods for JSRef<'a, CSSStyleDeclaration> {
|
|||
|
||||
let owner = self.owner.root();
|
||||
let window = window_from_node(owner.r()).root();
|
||||
let window = window.r();
|
||||
let page = window.page();
|
||||
let decl_block = parse_style_attribute(synthesized_declaration.as_slice(),
|
||||
&page.get_url());
|
||||
|
@ -267,6 +268,7 @@ impl<'a> CSSStyleDeclarationMethods for JSRef<'a, CSSStyleDeclaration> {
|
|||
|
||||
let owner = self.owner.root();
|
||||
let window = window_from_node(owner.r()).root();
|
||||
let window = window.r();
|
||||
let page = window.page();
|
||||
let decl_block = parse_style_attribute(property.as_slice(),
|
||||
&page.get_url());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue