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

Unified Diff: third_party/WebKit/Source/core/html/HTMLObjectElement.cpp

Issue 2258033002: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. Created 4 years, 4 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/html/HTMLObjectElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
index 7a463b99d75a637741ad9d05e1e5eaa0d92327de..7139c150fb786b0d935a46414a5310370ae6db61 100644
--- a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
@@ -244,7 +244,7 @@ void HTMLObjectElement::reloadPluginOnAttributeChange(const QualifiedName& name)
} else if (name == classidAttr) {
needsInvalidation = true;
} else {
- ASSERT_NOT_REACHED();
+ NOTREACHED();
needsInvalidation = false;
}
setNeedsWidgetUpdate(true);
@@ -256,8 +256,8 @@ void HTMLObjectElement::reloadPluginOnAttributeChange(const QualifiedName& name)
// moved down into HTMLPluginElement.cpp
void HTMLObjectElement::updateWidgetInternal()
{
- ASSERT(!layoutEmbeddedItem().showsUnavailablePluginIndicator());
- ASSERT(needsWidgetUpdate());
+ DCHECK(!layoutEmbeddedItem().showsUnavailablePluginIndicator());
+ DCHECK(needsWidgetUpdate());
setNeedsWidgetUpdate(false);
// TODO(schenney): crbug.com/572908 This should ASSERT isFinishedParsingChildren() instead.
if (!isFinishedParsingChildren()) {
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLObjectElement.h ('k') | third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698