فهرست منبع

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
     {
         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: