summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-08-22 21:43:25 +0100
committerAndreas Kling <kling@serenityos.org>2022-08-23 01:02:49 +0200
commitde5d25ee44ff1d7224809920fa5a10f016edb209 (patch)
tree627266825fc85ac5a476fd0a1db9d292be05e11d /Userland/Libraries
parent3a1f8d714a0afa03eadcbc6bb6cd35941383f1e2 (diff)
downloadserenity-de5d25ee44ff1d7224809920fa5a10f016edb209.zip
LibWeb: Add missing checks to LinearGradientStyleValue::equals()
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValue.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp
index 4e8f892c45..ab2d5a1a10 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp
+++ b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp
@@ -1557,8 +1557,12 @@ bool LinearGradientStyleValue::equals(StyleValue const& other_) const
return false;
auto& other = other_.as_linear_gradient();
- if (m_direction != other.m_direction || m_color_stop_list.size() != other.m_color_stop_list.size())
+ if (m_gradient_type != other.m_gradient_type
+ || m_repeating != other.m_repeating
+ || m_direction != other.m_direction
+ || m_color_stop_list.size() != other.m_color_stop_list.size()) {
return false;
+ }
for (size_t i = 0; i < m_color_stop_list.size(); i++) {
if (m_color_stop_list[i] != other.m_color_stop_list[i])