mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Implements Stylesheet.ownerNode
This commit is contained in:
parent
406d15974f
commit
e7199c029f
14 changed files with 72 additions and 39 deletions
|
@ -117,8 +117,9 @@ impl CSSStyleRuleMethods for CSSStyleRule {
|
|||
let mut guard = self.cssrule.shared_lock().write();
|
||||
let stylerule = self.stylerule.write_with(&mut guard);
|
||||
mem::swap(&mut stylerule.selectors, &mut s);
|
||||
stylesheets_owner_from_node(self.cssrule.parent_stylesheet().owner().upcast::<Node>())
|
||||
.invalidate_stylesheets();
|
||||
if let Some(owner) = self.cssrule.parent_stylesheet().get_owner() {
|
||||
stylesheets_owner_from_node(owner.upcast::<Node>()).invalidate_stylesheets();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue