mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
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:
committed by
Jelle Raaijmakers
parent
e2f2f813b6
commit
b07ef9435e
Notes:
github-actions[bot]
2026-03-24 12:58:12 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/b07ef9435ec Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8604 Reviewed-by: https://github.com/gmta ✅
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user