mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-29 06:22:53 +00:00
LibWeb: Make CSS::ComputedProperties GC-allocated
This commit is contained in:
parent
c1cad8fa0e
commit
74469a0c1f
Notes:
github-actions[bot]
2024-12-22 09:13:42 +00:00
Author: https://github.com/awesomekling
Commit: 74469a0c1f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2995
138 changed files with 337 additions and 339 deletions
|
@ -130,8 +130,8 @@ GC::Ref<SVGAnimatedLength> SVGElement::svg_animated_length_for_property(CSS::Pro
|
|||
{
|
||||
// FIXME: Create a proper animated value when animations are supported.
|
||||
auto make_length = [&] {
|
||||
if (auto const style = computed_css_values(); style.has_value()) {
|
||||
if (auto length = style->length_percentage(property); length.has_value())
|
||||
if (auto const computed_properties = this->computed_properties()) {
|
||||
if (auto length = computed_properties->length_percentage(property); length.has_value())
|
||||
return SVGLength::from_length_percentage(realm(), *length);
|
||||
}
|
||||
return SVGLength::create(realm(), 0, 0.0f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue