Use a 1-byte enum class for TextDirection
[WebKit-https.git] / Source / WebKitLegacy / ios / WebCoreSupport / WebFrameIOS.mm
index 509650a..958a6d9 100644 (file)
@@ -220,7 +220,7 @@ using namespace WebCore;
         SelectionRect &coreRect = rects[i];
         WebSelectionRect *webRect = [WebSelectionRect selectionRect];
         webRect.rect = static_cast<CGRect>(coreRect.rect());
-        webRect.writingDirection = coreRect.direction() == LTR ? WKWritingDirectionLeftToRight : WKWritingDirectionRightToLeft;
+        webRect.writingDirection = coreRect.direction() == TextDirection::LTR ? WKWritingDirectionLeftToRight : WKWritingDirectionRightToLeft;
         webRect.isLineBreak = coreRect.isLineBreak();
         webRect.isFirstOnLine = coreRect.isFirstOnLine();
         webRect.isLastOnLine = coreRect.isLastOnLine();