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

Unified Diff: third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win Created 4 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
Index: third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
diff --git a/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp b/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
index 2c8a034bcd088c9d130daa546a41705e7ca4cb35..d1a185bbf8b3af07f744df0a7516d64a3bb4c7c7 100644
--- a/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
+++ b/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
@@ -56,7 +56,7 @@ TreeScopeStyleSheetCollection::StyleResolverUpdateType TreeScopeStyleSheetCollec
{
unsigned newStyleSheetCount = newStylesheets.size();
unsigned oldStyleSheetCount = oldStyleSheets.size();
- ASSERT(newStyleSheetCount >= oldStyleSheetCount);
+ DCHECK_GE(newStyleSheetCount, oldStyleSheetCount);
if (!newStyleSheetCount)
return Reconstruct;
@@ -103,7 +103,7 @@ static bool findFontFaceRulesFromStyleSheetContents(const HeapVector<Member<Styl
bool hasFontFaceRule = false;
for (unsigned i = 0; i < sheets.size(); ++i) {
- ASSERT(sheets[i]);
+ DCHECK(sheets[i]);
if (sheets[i]->hasFontFaceRule()) {
// FIXME: We don't need this for styles in shadow tree.
sheets[i]->findFontFaceRules(fontFaceRules);
« no previous file with comments | « third_party/WebKit/Source/core/dom/TreeScopeAdopter.cpp ('k') | third_party/WebKit/Source/core/dom/TreeShared.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698