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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.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/LayoutImageResourceStyleImage.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp
index 3af832f636069e2c06ca11a73097ad4b4f8e3620..82c3f09b7db30d23dcded10d7f13181ddcf21ae8 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp
@@ -36,11 +36,11 @@ namespace blink {
LayoutImageResourceStyleImage::LayoutImageResourceStyleImage(
StyleImage* styleImage)
: m_styleImage(styleImage) {
- ASSERT(m_styleImage);
+ DCHECK(m_styleImage);
}
LayoutImageResourceStyleImage::~LayoutImageResourceStyleImage() {
- ASSERT(!m_cachedImage);
+ DCHECK(!m_cachedImage);
}
void LayoutImageResourceStyleImage::initialize(LayoutObject* layoutObject) {
@@ -53,7 +53,7 @@ void LayoutImageResourceStyleImage::initialize(LayoutObject* layoutObject) {
}
void LayoutImageResourceStyleImage::shutdown() {
- ASSERT(m_layoutObject);
+ DCHECK(m_layoutObject);
m_styleImage->removeClient(m_layoutObject);
m_cachedImage = nullptr;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutImageResource.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698