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 1daf561861fb978098871d665ddc317d8e39a536..0b624fd6dcdafd7ffeca70bcaf6c3178fba1cbc5 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()) |