mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
script: Pass &mut JSContext to Element::create (#43348)
Pass `&mut JSContext` to `Element::create` and `create_html_element` Testing: No functionality changes, covered by existing tests. Part of #40600 Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
@@ -87,13 +87,13 @@ impl HTMLTableSectionElementMethods<crate::DomTypeHolder> for HTMLTableSectionEl
|
||||
|| self.Rows(),
|
||||
|cx| {
|
||||
let row = Element::create(
|
||||
cx,
|
||||
QualName::new(None, ns!(html), local_name!("tr")),
|
||||
None,
|
||||
&node.owner_doc(),
|
||||
ElementCreator::ScriptCreated,
|
||||
CustomElementCreationMode::Asynchronous,
|
||||
None,
|
||||
CanGc::from_cx(cx),
|
||||
);
|
||||
DomRoot::downcast::<HTMLTableRowElement>(row).unwrap()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user