Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
index 889057eb9b0c915b6b148087dfc6b2a5e37851bc..6c1c51d6b824844583e3a779b7780ff9037a606b 100644 |
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
@@ -1133,14 +1133,15 @@ static LayoutRect SizingBox(const LayoutObject* layout_object) { |
: box->ComputedCSSContentBoxRect(); |
} |
-static CSSValue* RenderTextDecorationFlagsToCSSValue(int text_decoration) { |
+static CSSValue* RenderTextDecorationFlagsToCSSValue( |
+ TextDecoration text_decoration) { |
// Blink value is ignored. |
CSSValueList* list = CSSValueList::CreateSpaceSeparated(); |
- if (text_decoration & kTextDecorationUnderline) |
+ if (EnumHasFlags(text_decoration, TextDecoration::kUnderline)) |
list->Append(*CSSIdentifierValue::Create(CSSValueUnderline)); |
- if (text_decoration & kTextDecorationOverline) |
+ if (EnumHasFlags(text_decoration, TextDecoration::kOverline)) |
list->Append(*CSSIdentifierValue::Create(CSSValueOverline)); |
- if (text_decoration & kTextDecorationLineThrough) |
+ if (EnumHasFlags(text_decoration, TextDecoration::kLineThrough)) |
list->Append(*CSSIdentifierValue::Create(CSSValueLineThrough)); |
if (!list->length()) |