Use a 1-byte enum class for TextDirection
[WebKit-https.git] / Source / WebCore / editing / Editor.cpp
index a317b5c..1bac7f4 100644 (file)
@@ -1764,9 +1764,9 @@ WritingDirection Editor::baseWritingDirectionForSelectionStart() const
     }
 
     switch (renderer->style().direction()) {
-    case LTR:
+    case TextDirection::LTR:
         return LeftToRightWritingDirection;
-    case RTL:
+    case TextDirection::RTL:
         return RightToLeftWritingDirection;
     }