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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutFrameSet.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/LayoutFrameSet.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutFrameSet.h b/third_party/WebKit/Source/core/layout/LayoutFrameSet.h
index 5751f4ce0393b7dfde8b6cc58dcecd04755681fb..869a37dd789d663d901faf60cb0c205bef80e035 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFrameSet.h
+++ b/third_party/WebKit/Source/core/layout/LayoutFrameSet.h
@@ -62,11 +62,11 @@ class LayoutFrameSet final : public LayoutBox {
~LayoutFrameSet() 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/LayoutFlowThread.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutFrameSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698