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

Unified Diff: third_party/WebKit/Source/core/dom/StyleSheetCandidate.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/StyleSheetCandidate.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp b/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp
index d49bb546efb065256e41893994528ef26184fbef..f78753ff2afb3541fb9014758a868038ab711b81 100644
--- a/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp
@@ -61,7 +61,7 @@ bool StyleSheetCandidate::isCSSStyle() const
Document* StyleSheetCandidate::importedDocument() const
{
- ASSERT(isImport());
+ DCHECK(isImport());
return toHTMLLinkElement(node()).import();
}
@@ -88,7 +88,7 @@ bool StyleSheetCandidate::isEnabledAndLoading() const
bool StyleSheetCandidate::hasPreferrableName() const
{
- ASSERT(isEnabledAndLoading() || sheet());
+ DCHECK(isEnabledAndLoading() || sheet());
return !isEnabledViaScript() && !title().isEmpty() && !isAlternate();
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698