script: jscontext-ify element aria methods and SetCrossOrigin (#42957)

Use &mut JSContext in element aria* methods and SetCrossOrigin methods.

Testing: Compilation is the test as this is part from
https://github.com/servo/servo/issues/40600

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
Narfinger
2026-03-03 02:23:33 +09:00
committed by GitHub
parent a7f89a22ff
commit b55bc205a7
6 changed files with 118 additions and 114 deletions

View File

@@ -1304,8 +1304,8 @@ impl HTMLScriptElementMethods<crate::DomTypeHolder> for HTMLScriptElement {
}
/// <https://html.spec.whatwg.org/multipage/#dom-script-crossorigin>
fn SetCrossOrigin(&self, value: Option<DOMString>, can_gc: CanGc) {
set_cross_origin_attribute(self.upcast::<Element>(), value, can_gc);
fn SetCrossOrigin(&self, cx: &mut JSContext, value: Option<DOMString>) {
set_cross_origin_attribute(cx, self.upcast::<Element>(), value);
}
/// <https://html.spec.whatwg.org/multipage/#dom-script-referrerpolicy>