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
parent 69a0f28d04
commit 0149f7d4e4
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