LibWeb: Shave 168 bytes off of ARIAMixin

Instead of keeping the vectors inside ARIAMixin, point to the heap using
OwnPtrs.
This commit is contained in:
Jelle Raaijmakers 2025-11-07 12:02:27 +01:00 committed by Jelle Raaijmakers
parent 9d26626200
commit b6f5c91a35
Notes: github-actions[bot] 2025-11-07 16:00:28 +00:00
4 changed files with 31 additions and 23 deletions

View file

@ -566,7 +566,7 @@ GC::Ptr<DOM::Element> Element::get_the_attribute_associated_element(FlyString co
}
// https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#attr-associated-elements
Optional<GC::RootVector<GC::Ref<DOM::Element>>> Element::get_the_attribute_associated_elements(FlyString const& content_attribute, Optional<Vector<GC::Weak<DOM::Element>>> const& explicitly_set_attribute_elements) const
Optional<GC::RootVector<GC::Ref<DOM::Element>>> Element::get_the_attribute_associated_elements(FlyString const& content_attribute, Optional<Vector<GC::Weak<DOM::Element>> const&> explicitly_set_attribute_elements) const
{
// 1. Let elements be an empty list.
GC::RootVector<GC::Ref<DOM::Element>> elements(heap());