瀏覽代碼

LibWeb: Fix broken Specificity::operator==

Andreas Kling 5 年之前
父節點
當前提交
fa5e8be31c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Libraries/LibWeb/CSS/Specificity.h

+ 2 - 2
Libraries/LibWeb/CSS/Specificity.h

@@ -51,8 +51,8 @@ public:
     bool operator==(const Specificity& other) const
     bool operator==(const Specificity& other) const
     {
     {
         return m_ids == other.m_ids
         return m_ids == other.m_ids
-            || m_classes < other.m_classes
-            || m_tag_names < other.m_tag_names;
+            || m_classes == other.m_classes
+            || m_tag_names == other.m_tag_names;
     }
     }
 
 
 private:
 private: