mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 00:19:18 +00:00
LibWeb: Implement SVGLength's read-only property
An SVGLength can be read-only, e.g. all animVal values cannot be modified. Implement this for all instantiations of SVGLength. While we're here, add `fake_animated_length_fixme()` so we can easily find all sites where we need to improve our animated length game.
This commit is contained in:
parent
f9a13ecb13
commit
676f5837b3
Notes:
github-actions[bot]
2025-08-27 09:51:30 +00:00
Author: https://github.com/gmta
Commit: 676f5837b3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5994
16 changed files with 175 additions and 113 deletions
|
@ -162,26 +162,22 @@ Optional<Painting::PaintStyle> SVGLinearGradientElement::to_gfx_paint_style(SVGP
|
|||
|
||||
GC::Ref<SVGAnimatedLength> SVGLinearGradientElement::x1() const
|
||||
{
|
||||
// FIXME: Implement this properly.
|
||||
return SVGAnimatedLength::create(realm(), SVGLength::create(realm(), 0, 0), SVGLength::create(realm(), 0, 0));
|
||||
return fake_animated_length_fixme();
|
||||
}
|
||||
|
||||
GC::Ref<SVGAnimatedLength> SVGLinearGradientElement::y1() const
|
||||
{
|
||||
// FIXME: Implement this properly.
|
||||
return SVGAnimatedLength::create(realm(), SVGLength::create(realm(), 0, 0), SVGLength::create(realm(), 0, 0));
|
||||
return fake_animated_length_fixme();
|
||||
}
|
||||
|
||||
GC::Ref<SVGAnimatedLength> SVGLinearGradientElement::x2() const
|
||||
{
|
||||
// FIXME: Implement this properly.
|
||||
return SVGAnimatedLength::create(realm(), SVGLength::create(realm(), 0, 0), SVGLength::create(realm(), 0, 0));
|
||||
return fake_animated_length_fixme();
|
||||
}
|
||||
|
||||
GC::Ref<SVGAnimatedLength> SVGLinearGradientElement::y2() const
|
||||
{
|
||||
// FIXME: Implement this properly.
|
||||
return SVGAnimatedLength::create(realm(), SVGLength::create(realm(), 0, 0), SVGLength::create(realm(), 0, 0));
|
||||
return fake_animated_length_fixme();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue