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

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

Issue 2770123003: Replace ASSERT with DCHECK in core/layout/ excluding subdirs (Closed)
Patch Set: Check if DCHECK is ON in TextAutosizer 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/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();
}

Powered by Google App Engine
This is Rietveld 408576698