Index: Source/core/dom/StyleEngine.cpp |
diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp |
index d25247045e79e69558b151b2e439ffa065cc32dc..a1181c8f8a103dca05334648729ca10915fbc968 100644 |
--- a/Source/core/dom/StyleEngine.cpp |
+++ b/Source/core/dom/StyleEngine.cpp |
@@ -579,7 +579,8 @@ void StyleEngine::markTreeScopeDirty(TreeScope& scope) |
return; |
} |
- m_dirtyTreeScopes.add(&scope); |
+ if (m_styleSheetCollectionMap.contains(&scope)) |
tasak
2015/04/30 08:16:20
I think, it would be better to use ASSERT here, i.
rune
2015/04/30 08:35:45
Done.
|
+ m_dirtyTreeScopes.add(&scope); |
} |
void StyleEngine::markDocumentDirty() |