LibWeb: Allow SVGElement.ownerSVGElement to cross shadow boundary

This commit is contained in:
Tim Ledbetter 2024-09-06 23:44:34 +01:00 committed by Andreas Kling
commit 7a26de7464
Notes: github-actions[bot] 2024-09-07 12:35:57 +00:00

View file

@ -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