mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Make HTMLCollection and subclasses GC-allocated
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 07:43:05 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2bba97964b Pull-request: https://github.com/SerenityOS/serenity/pull/14816 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/linusg ✅
@@ -222,7 +222,7 @@ void HTMLTableElement::delete_t_foot()
|
||||
}
|
||||
}
|
||||
|
||||
NonnullRefPtr<DOM::HTMLCollection> HTMLTableElement::t_bodies()
|
||||
JS::NonnullGCPtr<DOM::HTMLCollection> HTMLTableElement::t_bodies()
|
||||
{
|
||||
return DOM::HTMLCollection::create(*this, [](DOM::Element const& element) {
|
||||
return element.local_name() == TagNames::tbody;
|
||||
@@ -253,7 +253,7 @@ JS::NonnullGCPtr<HTMLTableSectionElement> HTMLTableElement::create_t_body()
|
||||
return static_cast<HTMLTableSectionElement&>(*tbody);
|
||||
}
|
||||
|
||||
NonnullRefPtr<DOM::HTMLCollection> HTMLTableElement::rows()
|
||||
JS::NonnullGCPtr<DOM::HTMLCollection> HTMLTableElement::rows()
|
||||
{
|
||||
HTMLTableElement* table_node = this;
|
||||
// FIXME: The elements in the collection must be ordered such that those elements whose parent is a thead are
|
||||
|
||||
Reference in New Issue
Block a user