servo: Merge #9378 - Invalidate node style after style property removed (from paulrouget:removeProperty); r=KiChjang

Fix #9377

Source-Repo: https://github.com/servo/servo
Source-Revision: 8c0736211bf3e597b4d56a6efe6479a8c2d97c14
This commit is contained in:
Paul Rouget 2016-01-27 16:14:30 +05:01
parent 9a07334408
commit 0b5e2eda05

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