mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
@@ -77,7 +77,7 @@ bool CSSColor::equals(CSSStyleValue const& other) const
|
||||
auto const& other_color = other.as_color();
|
||||
if (color_type() != other_color.color_type())
|
||||
return false;
|
||||
auto const& other_lab_like = verify_cast<CSSColor>(other_color);
|
||||
auto const& other_lab_like = as<CSSColor>(other_color);
|
||||
return m_properties == other_lab_like.m_properties;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ bool CSSHSL::equals(CSSStyleValue const& other) const
|
||||
auto const& other_color = other.as_color();
|
||||
if (color_type() != other_color.color_type())
|
||||
return false;
|
||||
auto const& other_hsl = verify_cast<CSSHSL>(other_color);
|
||||
auto const& other_hsl = as<CSSHSL>(other_color);
|
||||
return m_properties == other_hsl.m_properties;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ bool CSSHWB::equals(CSSStyleValue const& other) const
|
||||
auto const& other_color = other.as_color();
|
||||
if (color_type() != other_color.color_type())
|
||||
return false;
|
||||
auto const& other_hwb = verify_cast<CSSHWB>(other_color);
|
||||
auto const& other_hwb = as<CSSHWB>(other_color);
|
||||
return m_properties == other_hwb.m_properties;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ bool CSSLCHLike::equals(CSSStyleValue const& other) const
|
||||
auto const& other_color = other.as_color();
|
||||
if (color_type() != other_color.color_type())
|
||||
return false;
|
||||
auto const& other_oklch_like = verify_cast<CSSLCHLike>(other_color);
|
||||
auto const& other_oklch_like = as<CSSLCHLike>(other_color);
|
||||
return m_properties == other_oklch_like.m_properties;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ bool CSSLabLike::equals(CSSStyleValue const& other) const
|
||||
auto const& other_color = other.as_color();
|
||||
if (color_type() != other_color.color_type())
|
||||
return false;
|
||||
auto const& other_lab_like = verify_cast<CSSLabLike>(other_color);
|
||||
auto const& other_lab_like = as<CSSLabLike>(other_color);
|
||||
return m_properties == other_lab_like.m_properties;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ bool CSSLightDark::equals(CSSStyleValue const& other) const
|
||||
auto const& other_color = other.as_color();
|
||||
if (color_type() != other_color.color_type())
|
||||
return false;
|
||||
auto const& other_light_dark = verify_cast<CSSLightDark>(other_color);
|
||||
auto const& other_light_dark = as<CSSLightDark>(other_color);
|
||||
return m_properties == other_light_dark.m_properties;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ bool CSSRGB::equals(CSSStyleValue const& other) const
|
||||
auto const& other_color = other.as_color();
|
||||
if (color_type() != other_color.color_type())
|
||||
return false;
|
||||
auto const& other_rgb = verify_cast<CSSRGB>(other_color);
|
||||
auto const& other_rgb = as<CSSRGB>(other_color);
|
||||
return m_properties == other_rgb.m_properties;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user