mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Propagate CanGc arguments through HTMLCollection constructors (#36180)
Signed-off-by: dericko681 <abonghoderick@gmail.com>
This commit is contained in:
parent
83da63f638
commit
40133ce29a
11 changed files with 125 additions and 53 deletions
|
@ -64,10 +64,15 @@ impl HTMLTableSectionElement {
|
|||
impl HTMLTableSectionElementMethods<crate::DomTypeHolder> for HTMLTableSectionElement {
|
||||
// https://html.spec.whatwg.org/multipage/#dom-tbody-rows
|
||||
fn Rows(&self) -> DomRoot<HTMLCollection> {
|
||||
HTMLCollection::new_with_filter_fn(&self.owner_window(), self.upcast(), |element, root| {
|
||||
element.is::<HTMLTableRowElement>() &&
|
||||
element.upcast::<Node>().GetParentNode().as_deref() == Some(root)
|
||||
})
|
||||
HTMLCollection::new_with_filter_fn(
|
||||
&self.owner_window(),
|
||||
self.upcast(),
|
||||
|element, root| {
|
||||
element.is::<HTMLTableRowElement>() &&
|
||||
element.upcast::<Node>().GetParentNode().as_deref() == Some(root)
|
||||
},
|
||||
CanGc::note(),
|
||||
)
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-tbody-insertrow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue