script: Pass &mut JSContext to children_changed and adopting_steps (#43219)

Switch `VirtualMethods::children_changed` and
`VirtualMethods::adopting_steps` to `&mut JSContext`.

Testing: No behaviour change, a successful build is enough.
Part of #40600

---------

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
Gae24
2026-03-13 14:40:40 +01:00
committed by GitHub
parent cd2c51bb3c
commit 048612fe84
30 changed files with 293 additions and 238 deletions

View File

@@ -101,14 +101,9 @@ impl HTMLTableSectionElementMethods<crate::DomTypeHolder> for HTMLTableSectionEl
}
/// <https://html.spec.whatwg.org/multipage/#dom-tbody-deleterow>
fn DeleteRow(&self, index: i32) -> ErrorResult {
fn DeleteRow(&self, cx: &mut JSContext, index: i32) -> ErrorResult {
let node = self.upcast::<Node>();
node.delete_cell_or_row(
index,
|| self.Rows(),
|n| n.is::<HTMLTableRowElement>(),
CanGc::note(),
)
node.delete_cell_or_row(cx, index, || self.Rows(), |n| n.is::<HTMLTableRowElement>())
}
}