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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutMedia.h

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/LayoutMedia.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutMedia.h b/third_party/WebKit/Source/core/layout/LayoutMedia.h
index d811d3ab64f5eb9405f40bc6a485b1f010d86b8e..4afd8d26d232e2850aa6a2de1794d6b740b73220 100644
--- a/third_party/WebKit/Source/core/layout/LayoutMedia.h
+++ b/third_party/WebKit/Source/core/layout/LayoutMedia.h
@@ -39,11 +39,11 @@ class LayoutMedia : public LayoutImage {
~LayoutMedia() override;
LayoutObject* firstChild() const {
- ASSERT(children() == virtualChildren());
+ DCHECK_EQ(children(), virtualChildren());
return children()->firstChild();
}
LayoutObject* lastChild() const {
- ASSERT(children() == virtualChildren());
+ DCHECK_EQ(children(), virtualChildren());
return children()->lastChild();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutListMarker.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutMedia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698