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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp

Issue 2845773002: Make TextDecoration an enum class. (Closed)
Patch Set: Created 3 years, 8 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/modules/accessibility/AXLayoutObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
index 767493452b9774f7dbdac06caa5575db811b27a0..311afadd67ad32f874b4360e2a05b0b9f834d8aa 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -1034,9 +1034,9 @@ TextStyle AXLayoutObject::GetTextStyle() const {
text_style |= kTextStyleBold;
if (style->GetFontDescription().Style() == kFontStyleItalic)
text_style |= kTextStyleItalic;
- if (style->GetTextDecoration() == kTextDecorationUnderline)
+ if (style->GetTextDecoration() == TextDecoration::kUnderline)
text_style |= kTextStyleUnderline;
- if (style->GetTextDecoration() == kTextDecorationLineThrough)
+ if (style->GetTextDecoration() == TextDecoration::kLineThrough)
text_style |= kTextStyleLineThrough;
return static_cast<TextStyle>(text_style);

Powered by Google App Engine
This is Rietveld 408576698