Selaa lähdekoodia

LibWeb: Fix broken Specificity::operator==

Andreas Kling 5 vuotta sitten
vanhempi
commit
fa5e8be31c
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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: