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 3a59fbf7deb7af97de3d6d9b578a98717d7e5371..01e36ed93eb3bd550ef8038ec501ed7757a35688 100644 |
| --- a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h |
| +++ b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h |
| @@ -1560,8 +1560,9 @@ inline IndentTextOrNot RequiresIndent(bool is_first_line, |
| bool is_after_hard_line_break, |
| const ComputedStyle& style) { |
| IndentTextOrNot indent_text = kDoNotIndentText; |
| - if (is_first_line || (is_after_hard_line_break && |
| - style.GetTextIndentLine()) == TextIndentLine::kEachLine) |
| + if (is_first_line || |
| + (is_after_hard_line_break && |
| + style.GetTextIndentLine() != TextIndentLine::kFirstLine)) |
|
eae
2017/05/30 03:57:22
Thanks for reversing the check here, makes it much
|
| indent_text = kIndentText; |
| if (style.GetTextIndentType() == TextIndentType::kHanging) |