script: Pass &mut JSContext to VirtualMethods::bind_to_tree (#43220)

Testing: No behaviour change, a successful build is enough.
Fixes: #42838 #43239

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
Gae24
2026-03-14 08:37:47 +01:00
committed by GitHub
parent 363ba0ccd1
commit ef97d7e199
47 changed files with 409 additions and 430 deletions

View File

@@ -676,15 +676,15 @@ impl VirtualMethods for HTMLTextAreaElement {
.perform_validation_and_update(ValidationFlags::all(), can_gc);
}
fn bind_to_tree(&self, context: &BindContext, can_gc: CanGc) {
fn bind_to_tree(&self, cx: &mut JSContext, context: &BindContext) {
if let Some(s) = self.super_type() {
s.bind_to_tree(context, can_gc);
s.bind_to_tree(cx, context);
}
self.upcast::<Element>()
.check_ancestors_disabled_state_for_form_control();
self.handle_text_content_changed(can_gc);
self.handle_text_content_changed(CanGc::from_cx(cx));
}
fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue {