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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc

Issue 2770203002: Replace DCHECK with DCHECK_op and split some DCHECKs wherever necessary (Closed)
Patch Set: Add few more 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/ng/ng_fragment_builder.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
index b2885eadf0fca1986d525169bbdcfa3debcf9a4d..cb8734ddaef90960a9536d38fb25dde3a9468805 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
@@ -89,7 +89,8 @@ NGFragmentBuilder& NGFragmentBuilder::AddChild(
case NGPhysicalBoxFragment::kFragmentLineBox:
// NGInlineNode produces multiple line boxes in an anonymous box. Only
// the last break token is needed to be reported to the parent.
- DCHECK(child->BreakToken() && child->BreakToken()->InputNode() == node_);
+ DCHECK(child->BreakToken());
+ DCHECK_EQ(child->BreakToken()->InputNode(), node_);
last_inline_break_token_ =
child->BreakToken()->IsFinished() ? nullptr : child->BreakToken();
break;

Powered by Google App Engine
This is Rietveld 408576698