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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutImage.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/LayoutImage.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutImage.cpp b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
index 9b95e882fecc18acf7a70542e6dead196aa7df4b..9ccdb4a13c0784ec38430a24375f11f60f052d71 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImage.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
@@ -60,7 +60,7 @@ LayoutImage* LayoutImage::createAnonymous(PseudoElement& pseudo) {
LayoutImage::~LayoutImage() {}
void LayoutImage::willBeDestroyed() {
- ASSERT(m_imageResource);
+ DCHECK(m_imageResource);
m_imageResource->shutdown();
LayoutReplaced::willBeDestroyed();
}
@@ -77,14 +77,14 @@ void LayoutImage::styleDidChange(StyleDifference diff,
}
void LayoutImage::setImageResource(LayoutImageResource* imageResource) {
- ASSERT(!m_imageResource);
+ DCHECK(!m_imageResource);
m_imageResource = imageResource;
m_imageResource->initialize(this);
}
void LayoutImage::imageChanged(WrappedImagePtr newImage, const IntRect* rect) {
- ASSERT(view());
- ASSERT(view()->frameView());
+ DCHECK(view());
+ DCHECK(view()->frameView());
if (documentBeingDestroyed())
return;
@@ -206,7 +206,7 @@ void LayoutImage::paint(const PaintInfo& paintInfo,
}
void LayoutImage::areaElementFocusChanged(HTMLAreaElement* areaElement) {
- ASSERT(areaElement->imageElement() == node());
+ DCHECK_EQ(areaElement->imageElement(), node());
if (areaElement->getPath(this).isEmpty())
return;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutIFrame.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698