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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutImageResource.cpp

Issue 2770123003: Replace ASSERT with DCHECK in core/layout/ excluding subdirs (Closed)
Patch Set: Split some DCHECKs and add DCHECK_ops wherever possible Created 3 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/layout/LayoutImageResource.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp b/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp
index a4b9b923ef6467c3201e1297bd15e5ed21f74d4a..4b254d484a13f3c776d6d8831d7e47cb348804bb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp
@@ -40,13 +40,13 @@ LayoutImageResource::LayoutImageResource()
LayoutImageResource::~LayoutImageResource() {}
void LayoutImageResource::initialize(LayoutObject* layoutObject) {
- ASSERT(!m_layoutObject);
- ASSERT(layoutObject);
+ DCHECK(!m_layoutObject);
+ DCHECK(layoutObject);
m_layoutObject = layoutObject;
}
void LayoutImageResource::shutdown() {
- ASSERT(m_layoutObject);
+ DCHECK(m_layoutObject);
if (!m_cachedImage)
return;
@@ -54,7 +54,7 @@ void LayoutImageResource::shutdown() {
}
void LayoutImageResource::setImageResource(ImageResourceContent* newImage) {
- ASSERT(m_layoutObject);
+ DCHECK(m_layoutObject);
if (m_cachedImage == newImage)
return;
@@ -73,7 +73,7 @@ void LayoutImageResource::setImageResource(ImageResourceContent* newImage) {
}
void LayoutImageResource::resetAnimation() {
- ASSERT(m_layoutObject);
+ DCHECK(m_layoutObject);
if (!m_cachedImage)
return;

Powered by Google App Engine
This is Rietveld 408576698