mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:58:11 +00:00
LibWeb: Add missing checks to LinearGradientStyleValue::equals()
This commit is contained in:
parent
3a1f8d714a
commit
de5d25ee44
1 changed files with 5 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue