Index: Source/core/dom/StyleSheetScopingNodeList.cpp |
diff --git a/Source/core/dom/StyleSheetScopingNodeList.cpp b/Source/core/dom/StyleSheetScopingNodeList.cpp |
index c633957f41dd35b8de895d959d13539c69cd0ce6..5d809e0090411cd7c35c8bffe966d71359a636e9 100644 |
--- a/Source/core/dom/StyleSheetScopingNodeList.cpp |
+++ b/Source/core/dom/StyleSheetScopingNodeList.cpp |
@@ -53,7 +53,7 @@ |
return; |
// If the node is still working as a scoping node, we cannot remove. |
- if (node->inDocument()) |
+ if (node->inDocument() && node->numberOfScopedHTMLStyleChildren()) |
return; |
m_scopingNodes->remove(node); |
@@ -63,3 +63,5 @@ |
} |
} |
+ |
+ |