mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user