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

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

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Rebase after reopen Created 4 years 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 4bf4f6ecd1f6cc8eb8332b6b202baf6c6022c928..7024ba02f2ed1af06adf6811a8dabe92fb506608 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -988,16 +988,16 @@ AccessibilityTextDirection AXLayoutObject::textDirection() const {
if (style->isHorizontalWritingMode()) {
switch (style->direction()) {
- case LTR:
+ case TextDirection::Ltr:
return AccessibilityTextDirectionLTR;
- case RTL:
+ case TextDirection::Rtl:
return AccessibilityTextDirectionRTL;
}
} else {
switch (style->direction()) {
- case LTR:
+ case TextDirection::Ltr:
return AccessibilityTextDirectionTTB;
- case RTL:
+ case TextDirection::Rtl:
return AccessibilityTextDirectionBTT;
}
}

Powered by Google App Engine
This is Rietveld 408576698