summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/CSS/Specificity.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-13 00:43:32 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-13 00:43:32 +0200
commitfa5e8be31cb73a33afbfd67b6d1bbb04a18fbc4d (patch)
tree7809e7fc989753976f9c3959c112ac1d5f99b88e /Libraries/LibWeb/CSS/Specificity.h
parentae3e5e9d376fd41b48d38e972b79b7ebfa3dde71 (diff)
downloadserenity-fa5e8be31cb73a33afbfd67b6d1bbb04a18fbc4d.zip
LibWeb: Fix broken Specificity::operator==
Diffstat (limited to 'Libraries/LibWeb/CSS/Specificity.h')
-rw-r--r--Libraries/LibWeb/CSS/Specificity.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/CSS/Specificity.h b/Libraries/LibWeb/CSS/Specificity.h
index 360a7f852b..30e7b3c7d5 100644
--- a/Libraries/LibWeb/CSS/Specificity.h
+++ b/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: