From 88ed7860f2dc1bb87a9e3cfda572f43b63f2e854 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 18 Apr 2025 10:33:19 +0200 Subject: [PATCH] LibWeb: Skip dynamic_cast in CSSRGB after we already did a type check --- Libraries/LibWeb/CSS/StyleValues/CSSRGB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }