Use a 1-byte enum class for TextDirection
[WebKit-https.git] / Source / WebCore / platform / graphics / GraphicsContext.cpp
index c9731aa..60ceeb6 100644 (file)
@@ -683,7 +683,7 @@ void GraphicsContext::drawBidiText(const FontCascade& font, const TextRun& run,
     while (bidiRun) {
         TextRun subrun = run.subRun(bidiRun->start(), bidiRun->stop() - bidiRun->start());
         bool isRTL = bidiRun->level() % 2;
-        subrun.setDirection(isRTL ? RTL : LTR);
+        subrun.setDirection(isRTL ? TextDirection::RTL : TextDirection::LTR);
         subrun.setDirectionalOverride(bidiRun->dirOverride(false));
 
         float width = font.drawText(*this, subrun, currPoint, 0, std::nullopt, customFontNotReadyAction);