mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Invalidate node style after style property removed
This commit is contained in:
parent
6a38d55cea
commit
6d7dc0b905
6 changed files with 43 additions and 6 deletions
|
@ -329,6 +329,10 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration {
|
|||
None => elem.remove_inline_style_property(&property),
|
||||
}
|
||||
|
||||
let document = document_from_node(elem);
|
||||
let node = elem.upcast();
|
||||
document.content_changed(node, NodeDamage::NodeStyleDamaged);
|
||||
|
||||
// Step 6
|
||||
Ok(value)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue