LibWeb/CSS: Remove unnecessary CalculatedStyleValue const-casts

This commit is contained in:
Sam Atkins 2024-12-11 15:16:34 +00:00 committed by Andreas Kling
commit 0149f7d4e4
Notes: github-actions[bot] 2024-12-21 17:15:50 +00:00
3 changed files with 8 additions and 8 deletions

View file

@ -2470,7 +2470,7 @@ bool CalculatedStyleValue::equals(CSSStyleValue const& other) const
if (type() != other.type())
return false;
return m_calculation->equals(*static_cast<CalculatedStyleValue const&>(other).m_calculation);
return m_calculation->equals(*other.as_calculated().m_calculation);
}
Optional<Angle> CalculatedStyleValue::resolve_angle() const