mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
script: propagate VirtualMethods::unbind_from_tree with &mut JSContext (#44422)
Propagate `&mut JSContext` in `VirtualMethods::unbind_from_tree` Testing: Successful build is enough Fixes: #42837 --------- Signed-off-by: Emmanuel Paul Elom <elomemmanuel007@gmail.com>
This commit is contained in:
@@ -469,8 +469,8 @@ impl VirtualMethods for HTMLOptionElement {
|
||||
self.update_select_validity(CanGc::from_cx(cx));
|
||||
}
|
||||
|
||||
fn unbind_from_tree(&self, context: &UnbindContext, can_gc: CanGc) {
|
||||
self.super_type().unwrap().unbind_from_tree(context, can_gc);
|
||||
fn unbind_from_tree(&self, cx: &mut js::context::JSContext, context: &UnbindContext) {
|
||||
self.super_type().unwrap().unbind_from_tree(cx, context);
|
||||
|
||||
if let Some(select) = context
|
||||
.parent
|
||||
@@ -478,8 +478,8 @@ impl VirtualMethods for HTMLOptionElement {
|
||||
.find_map(DomRoot::downcast::<HTMLSelectElement>)
|
||||
{
|
||||
select
|
||||
.validity_state(can_gc)
|
||||
.perform_validation_and_update(ValidationFlags::all(), can_gc);
|
||||
.validity_state(CanGc::from_cx(cx))
|
||||
.perform_validation_and_update(ValidationFlags::all(), CanGc::from_cx(cx));
|
||||
select.ask_for_reset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user