mirror of
https://github.com/servo/servo
synced 2026-04-27 09:57:23 +02:00
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:
@@ -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>())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user