mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Transitively deparent on removal
Chrome and Firefox do this already, probably a spec oversight
This commit is contained in:
parent
53c99662bc
commit
cada5d7c03
4 changed files with 32 additions and 8 deletions
|
@ -55,7 +55,8 @@ impl CSSKeyframesRule {
|
|||
}
|
||||
|
||||
impl CSSKeyframesRuleMethods for CSSKeyframesRule {
|
||||
fn CssRules(&self) -> Root<CSSRuleList> {
|
||||
// https://drafts.csswg.org/css-animations/#dom-csskeyframesrule-cssrules
|
||||
fn CssRules(&self) -> Root<CSSRuleList> {
|
||||
self.rulelist()
|
||||
}
|
||||
}
|
||||
|
@ -69,4 +70,8 @@ impl SpecificCSSRule for CSSKeyframesRule {
|
|||
fn get_css(&self) -> DOMString {
|
||||
self.keyframesrule.read().to_css_string().into()
|
||||
}
|
||||
|
||||
fn deparent_children(&self) {
|
||||
self.rulelist.get().map(|list| list.deparent_all());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue