diff --git a/Libraries/LibWeb/CSS/StyleValues/CSSRGB.cpp b/Libraries/LibWeb/CSS/StyleValues/CSSRGB.cpp index da553821f0a..c37a4c01576 100644 --- a/Libraries/LibWeb/CSS/StyleValues/CSSRGB.cpp +++ b/Libraries/LibWeb/CSS/StyleValues/CSSRGB.cpp @@ -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(other_color); + auto const& other_rgb = static_cast(other_color); return m_properties == other_rgb.m_properties; }