mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Allow SVGElement.ownerSVGElement to cross shadow boundary
This commit is contained in:
parent
44e4ea3d7a
commit
7a26de7464
|
|
@ -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…
Reference in New Issue
Block a user