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

Unified Diff: third_party/WebKit/Source/core/style/ContentData.h

Issue 2751653003: Replace ASSERT and ASSERT_NOT_REACHED in core/style/ (Closed)
Patch Set: Replace ASSERT and ASSERT_NOT_REACHED in core/style/ Created 3 years, 9 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/style/ContentData.h
diff --git a/third_party/WebKit/Source/core/style/ContentData.h b/third_party/WebKit/Source/core/style/ContentData.h
index 0b25bccf652d5057debb93c9494df3c5626ec509..c99dbd35b2ea06156bf4db04d648950f469de478 100644
--- a/third_party/WebKit/Source/core/style/ContentData.h
+++ b/third_party/WebKit/Source/core/style/ContentData.h
@@ -79,7 +79,7 @@ class ImageContentData final : public ContentData {
const StyleImage* image() const { return m_image.get(); }
StyleImage* image() { return m_image.get(); }
void setImage(StyleImage* image) {
- ASSERT(image);
+ DCHECK(image);
m_image = image;
}
@@ -95,7 +95,7 @@ class ImageContentData final : public ContentData {
DECLARE_VIRTUAL_TRACE();
private:
- ImageContentData(StyleImage* image) : m_image(image) { ASSERT(m_image); }
+ ImageContentData(StyleImage* image) : m_image(image) { DCHECK(m_image); }
ContentData* cloneInternal() const override {
StyleImage* image = const_cast<StyleImage*>(this->image());
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | third_party/WebKit/Source/core/style/CounterDirectives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698