LibWeb: Remove fallback behavior from color_or_fallback

All of the properties using this method only accept color values so the
fallback behavior wasn't required
This commit is contained in:
Callum Law
2026-03-25 00:48:45 +13:00
committed by Jelle Raaijmakers
parent e2f2f813b6
commit b07ef9435e
Notes: github-actions[bot] 2026-03-24 12:58:12 +00:00
8 changed files with 18 additions and 26 deletions

View File

@@ -50,7 +50,7 @@ void SVGStopElement::apply_presentational_hints(GC::Ref<CSS::CascadedProperties>
Gfx::Color SVGStopElement::stop_color()
{
if (auto computed_properties = this->computed_properties())
return computed_properties->color_or_fallback(CSS::PropertyID::StopColor, CSS::ColorResolutionContext::for_element({ *this }), CSS::InitialValues::stop_color());
return computed_properties->color(CSS::PropertyID::StopColor, CSS::ColorResolutionContext::for_element({ *this }));
return CSS::InitialValues::stop_color();
}