Index: Source/core/dom/Node.cpp |
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp |
index 338aa5734b2ed6ec461f18cb4d2f1241a99d82d4..c7d5aff81281e72751725323f317d807d1125b4b 100644 |
--- a/Source/core/dom/Node.cpp |
+++ b/Source/core/dom/Node.cpp |
@@ -1022,6 +1022,8 @@ void Node::detach(const AttachContext& context) |
if (StyleResolver* resolver = document().styleResolver()) |
resolver->ruleFeatureSet().styleInvalidator().clearInvalidation(*this); |
+ clearChildNeedsStyleInvalidation(); |
+ clearNeedsStyleInvalidation(); |
#ifndef NDEBUG |
detachingNode = 0; |