mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +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:
@@ -135,9 +135,9 @@ pub(crate) trait VirtualMethods {
|
||||
/// Called when a Node is removed from a tree.
|
||||
/// Implements removing steps:
|
||||
/// <https://dom.spec.whatwg.org/#concept-node-remove-ext>
|
||||
fn unbind_from_tree(&self, context: &UnbindContext, can_gc: CanGc) {
|
||||
fn unbind_from_tree(&self, cx: &mut js::context::JSContext, context: &UnbindContext) {
|
||||
if let Some(s) = self.super_type() {
|
||||
s.unbind_from_tree(context, can_gc);
|
||||
s.unbind_from_tree(cx, context);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user