mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
LibWeb: Skip dynamic_cast in CSSRGB after we already did a type check
This commit is contained in:
parent
c77724f748
commit
88ed7860f2
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,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 = as<CSSRGB>(other_color);
|
||||
auto const& other_rgb = static_cast<CSSRGB const&>(other_color);
|
||||
return m_properties == other_rgb.m_properties;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue