Index: third_party/WebKit/Source/core/layout/ng/inline/ng_inline_break_token.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_break_token.cc b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_break_token.cc |
index a58aff8eb3b0f4b3c19012f799fb73f3252b7bf6..e9638b4b2814f2b8c63d5704f8de80d296725e6f 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_break_token.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_break_token.cc |
@@ -13,7 +13,10 @@ NGInlineBreakToken::NGInlineBreakToken(NGInlineNode* node, |
unsigned text_offset) |
: NGBreakToken(kInlineBreakToken, kUnfinished, node), |
item_index_(item_index), |
- text_offset_(text_offset) {} |
+ text_offset_(text_offset) { |
+ // Use nullptr for the initial layout, rather than (0, 0) break token. |
+ DCHECK(item_index || text_offset); |
+} |
NGInlineBreakToken::NGInlineBreakToken(NGLayoutInputNode* node) |
: NGBreakToken(kInlineBreakToken, kFinished, node), |