فهرست منبع

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

It was comparing against itself, oopsie!
Andreas Kling 3 سال پیش
والد
کامیت
630f2e0ee9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Userland/Libraries/LibWeb/CSS/StyleProperties.cpp

+ 1 - 1
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) {
     for (size_t i = 0; i < m_property_values.size(); ++i) {
         auto const& my_ptr = m_property_values[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 (!my_ptr) {
             if (other_ptr)
             if (other_ptr)
                 return false;
                 return false;