mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibWeb: Allow SVGElement.ownerSVGElement to cross shadow boundary
This commit is contained in:
parent
44e4ea3d7a
commit
7a26de7464
Notes:
github-actions[bot]
2024-09-07 12:35:57 +00:00
Author: https://github.com/tcl3
Commit: 7a26de7464
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1307
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ JS::GCPtr<SVGSVGElement> SVGElement::owner_svg_element()
|
|||
// The ownerSVGElement IDL attribute represents the nearest ancestor ‘svg’ element.
|
||||
// On getting ownerSVGElement, the nearest ancestor ‘svg’ element is returned;
|
||||
// if the current element is the outermost svg element, then null is returned.
|
||||
return first_ancestor_of_type<SVGSVGElement>();
|
||||
return shadow_including_first_ancestor_of_type<SVGSVGElement>();
|
||||
}
|
||||
|
||||
JS::NonnullGCPtr<SVGAnimatedLength> SVGElement::svg_animated_length_for_property(CSS::PropertyID property) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue