Use a 1-byte enum class for TextDirection
[WebKit-https.git] / Source / WebCore / rendering / style / RenderStyle.cpp
index cdd2300..c2c4e85 100644 (file)
@@ -152,7 +152,7 @@ RenderStyle::RenderStyle(CreateDefaultStyleTag)
 #if ENABLE(CURSOR_VISIBILITY)
     m_inheritedFlags.cursorVisibility = static_cast<unsigned>(initialCursorVisibility());
 #endif
-    m_inheritedFlags.direction = initialDirection();
+    m_inheritedFlags.direction = static_cast<unsigned>(initialDirection());
     m_inheritedFlags.whiteSpace = static_cast<unsigned>(initialWhiteSpace());
     m_inheritedFlags.borderCollapse = static_cast<unsigned>(initialBorderCollapse());
     m_inheritedFlags.rtlOrdering = static_cast<unsigned>(initialRTLOrdering());