Index: third_party/WebKit/Source/core/dom/Element.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp |
index 0b9901e0462d4bc16e50dac344155b883aa12076..aeb8d1c4105c39229df86c6fca5322c86b17d4f8 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.cpp |
+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
@@ -1530,6 +1530,8 @@ void Element::removedFrom(ContainerNode* insertionPoint) |
if (isUpgradedCustomElement()) |
CustomElement::didDetach(this, insertionPoint->document()); |
+ |
+ document().styleEngine().styleInvalidator().clearInvalidation(*this); |
esprehn
2016/01/15 17:07:24
Can we do a bit check here to avoid this long chai
rune
2016/01/15 17:22:21
Done.
|
} |
document().removeFromTopLayer(this); |