Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(801)

Unified Diff: Source/core/dom/StyleEngine.cpp

Issue 1106313003: Null check collection handling dirty scopes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Alternative fix checking for collection in markTreeScopeDirty Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/dom/shadow/remove-stylesheet-from-shadow-crash-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « LayoutTests/fast/dom/shadow/remove-stylesheet-from-shadow-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698