mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Implements Stylesheet.ownerNode
This commit is contained in:
parent
406d15974f
commit
e7199c029f
14 changed files with 72 additions and 39 deletions
|
@ -113,8 +113,10 @@ impl CSSStyleOwner {
|
|||
if changed {
|
||||
// If this is changed, see also
|
||||
// CSSStyleRule::SetSelectorText, which does the same thing.
|
||||
stylesheets_owner_from_node(rule.parent_stylesheet().owner().upcast::<Node>())
|
||||
.invalidate_stylesheets();
|
||||
if let Some(owner) = rule.parent_stylesheet().get_owner() {
|
||||
stylesheets_owner_from_node(owner.upcast::<Node>())
|
||||
.invalidate_stylesheets();
|
||||
}
|
||||
}
|
||||
result
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue