1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +00:00

LibWeb: Make StyleProperties::operator==(StyleProperties) actually work

It was comparing against itself, oopsie!
This commit is contained in:
Andreas Kling 2022-03-12 23:57:40 +01:00
parent ad8d65fd6e
commit 630f2e0ee9

View file

@ -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;