mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb/CSS: Remove unnecessary CalculatedStyleValue const-casts
This commit is contained in:
parent
69a0f28d04
commit
0149f7d4e4
Notes:
github-actions[bot]
2024-12-21 17:15:50 +00:00
Author: https://github.com/AtkinsSJ
Commit: 0149f7d4e4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2966
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue