AK+Everywhere: Rename verify_cast to as

Follow-up to fc20e61e72.
This commit is contained in:
Timothy Flynn 2025-01-21 09:12:05 -05:00 committed by Tim Flynn
commit 85b424464a
Notes: github-actions[bot] 2025-01-21 16:49:39 +00:00
191 changed files with 574 additions and 574 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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