From 630f2e0ee95cf2e8be8d5bd04a295ed7a8e299a6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 12 Mar 2022 23:57:40 +0100 Subject: [PATCH] LibWeb: Make StyleProperties::operator==(StyleProperties) actually work It was comparing against itself, oopsie! --- Userland/Libraries/LibWeb/CSS/StyleProperties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp index 18e68eb399..a297e1274c 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp @@ -398,7 +398,7 @@ bool StyleProperties::operator==(const StyleProperties& other) const for (size_t i = 0; i < m_property_values.size(); ++i) { auto const& my_ptr = m_property_values[i]; - auto const& other_ptr = m_property_values[i]; + auto const& other_ptr = other.m_property_values[i]; if (!my_ptr) { if (other_ptr) return false;