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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp

Issue 2845773002: Make TextDecoration an enum class. (Closed)
Patch Set: Rebase 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
Index: third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
index b29697600454fc8084e3c18a6dccf8a9d188bf41..3d285021190464396dfca1e7affc0be0e8bbc6b0 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
@@ -909,8 +909,8 @@ LayoutUnit InlineFlowBox::FarthestPositionForUnderline(
// If the text decoration isn't in effect on the child, it must be outside
// of |decorationObject|.
- if (!(curr->LineStyleRef().TextDecorationsInEffect() &
- kTextDecorationUnderline))
+ if (!EnumHasFlags(curr->LineStyleRef().TextDecorationsInEffect(),
+ TextDecoration::kUnderline))
continue;
if (decorating_box && decorating_box.IsLayoutInline() &&

Powered by Google App Engine
This is Rietveld 408576698