Use a 1-byte enum class for TextDirection
[WebKit-https.git] / Source / WebCore / css / ElementRuleCollector.cpp
index 77b9bed..05d385a 100644 (file)
@@ -518,7 +518,7 @@ void ElementRuleCollector::matchAllRules(bool matchAuthorAndUserStyles, bool inc
             bool isAuto;
             TextDirection textDirection = downcast<HTMLElement>(styledElement).directionalityIfhasDirAutoAttribute(isAuto);
             if (isAuto)
-                m_result.addMatchedProperties(textDirection == LTR ? leftToRightDeclaration() : rightToLeftDeclaration());
+                m_result.addMatchedProperties(textDirection == TextDirection::LTR ? leftToRightDeclaration() : rightToLeftDeclaration());
         }
     }