Browse Source

LibWeb: Fix broken Specificity::operator==

Andreas Kling 5 years ago
parent
commit
fa5e8be31c
1 changed files with 2 additions and 2 deletions
  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
     {
         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: