Index: Source/core/dom/StyleElement.cpp |
diff --git a/Source/core/dom/StyleElement.cpp b/Source/core/dom/StyleElement.cpp |
index 79a03030c3e3a6117df0c6c449e4dcfb44dc4e3b..9a7a15fe5e0a9505afb232c595b21fd301a8e4aa 100644 |
--- a/Source/core/dom/StyleElement.cpp |
+++ b/Source/core/dom/StyleElement.cpp |
@@ -118,6 +118,7 @@ void StyleElement::clearDocumentData(Document& document, Element* element) |
if (m_registeredAsCandidate) { |
ASSERT(element->inDocument()); |
document.styleEngine().removeStyleSheetCandidateNode(element, element->treeScope()); |
+ m_registeredAsCandidate = false; |
} |
} |