Use a 1-byte enum class for TextDirection
[WebKit-https.git] / Source / WebCore / platform / UserInterfaceLayoutDirection.h
index 2ab4a7e..834dea5 100644 (file)
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef UserInterfaceLayoutDirection_h
-#define UserInterfaceLayoutDirection_h
+#pragma once
 
 namespace WebCore {
 
-enum class UserInterfaceLayoutDirection { LTR, RTL };
+enum class UserInterfaceLayoutDirection : uint8_t { LTR, RTL };
 
 } // namespace WebCore
-
-#endif // UserInterfaceLayoutDirection_h