Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h |
| diff --git a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h |
| index 62ceade42a907e4930d366840be62c3e9f2c5da1..ab0f1baaae981cee6baffa0cf8a143ce2ce54388 100644 |
| --- a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h |
| +++ b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h |
| @@ -206,6 +206,10 @@ inline bool alwaysRequiresLineBox(LineLayoutItem flow) |
| inline bool requiresLineBox(const InlineIterator& it, const LineInfo& lineInfo = LineInfo(), WhitespacePosition whitespacePosition = LeadingWhitespace) |
| { |
| + if (it.getLineLayoutItem().isEmptyText()) { |
|
eae
2016/08/02 20:52:04
NIT: No curly brackets around one-line control-flo
Gleb Lanbin
2016/08/02 23:17:55
Done.
|
| + return false; |
| + } |
| + |
| if (it.getLineLayoutItem().isFloatingOrOutOfFlowPositioned()) |
| return false; |