Use a 1-byte enum class for TextDirection
[WebKit-https.git] / Tools / TestWebKitAPI / Tests / WebCore / ComplexTextController.cpp
index 9d2127f..93fe90e 100644 (file)
@@ -352,7 +352,7 @@ TEST_F(ComplexTextControllerTest, TotalWidthWithJustification)
 
     UChar characters[] = { 0x644, ' ', 0x644, ' ', 0x644 };
     size_t charactersLength = WTF_ARRAY_LENGTH(characters);
-    TextRun textRun(StringView(characters, charactersLength), 0, 14, DefaultExpansion, RTL);
+    TextRun textRun(StringView(characters, charactersLength), 0, 14, DefaultExpansion, TextDirection::RTL);
     auto run = ComplexTextController::ComplexTextRun::create(advances, origins, { 5, 6, 7, 8, 9 }, { 4, 3, 2, 1, 0 }, initialAdvance, font.primaryFont(), characters, 0, charactersLength, 0, 5, false);
     Vector<Ref<ComplexTextController::ComplexTextRun>> runs;
     runs.append(WTFMove(run));