Auto merge of #9378 - paulrouget:removeProperty, r=KiChjang

Invalidate node style after style property removed

Fix #9377

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9378)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-01-27 16:43:30 +05:30
commit 8c0736211b
6 changed files with 43 additions and 6 deletions

View file

@ -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)
}