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

Unified Diff: third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h

Issue 2904383002: Make TextIndentLine an enum class. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyleConstants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698