mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Make CSS::ComputedProperties GC-allocated
This commit is contained in:
committed by
Andreas Kling
parent
c1cad8fa0e
commit
74469a0c1f
@@ -49,15 +49,15 @@ void SVGStopElement::apply_presentational_hints(GC::Ref<CSS::CascadedProperties>
|
||||
|
||||
Gfx::Color SVGStopElement::stop_color() const
|
||||
{
|
||||
if (auto css_values = computed_css_values(); css_values.has_value())
|
||||
return css_values->stop_color();
|
||||
if (auto computed_properties = this->computed_properties())
|
||||
return computed_properties->stop_color();
|
||||
return Color::Black;
|
||||
}
|
||||
|
||||
float SVGStopElement::stop_opacity() const
|
||||
{
|
||||
if (auto css_values = computed_css_values(); css_values.has_value())
|
||||
return css_values->stop_opacity();
|
||||
if (auto computed_properties = this->computed_properties())
|
||||
return computed_properties->stop_opacity();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user