瀏覽代碼

LibWeb: Remove "Invalid" StyleValue type

We never actually use this, we always initialize StyleValues with a
proper type.
Sam Atkins 2 年之前
父節點
當前提交
5533413061
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Userland/Libraries/LibWeb/CSS/StyleValue.h

+ 1 - 2
Userland/Libraries/LibWeb/CSS/StyleValue.h

@@ -115,7 +115,6 @@ public:
         Image,
         Inherit,
         Initial,
-        Invalid,
         Length,
         LinearGradient,
         ListStyle,
@@ -318,7 +317,7 @@ protected:
     explicit StyleValue(Type);
 
 private:
-    Type m_type { Type::Invalid };
+    Type m_type;
 };
 
 template<typename T>