mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
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:
@@ -5,6 +5,7 @@
|
||||
use dom_struct::dom_struct;
|
||||
use embedder_traits::{EmbedderMsg, LoadStatus};
|
||||
use html5ever::{LocalName, Prefix, local_name, ns};
|
||||
use js::context::JSContext;
|
||||
use js::rust::HandleObject;
|
||||
use style::attr::AttrValue;
|
||||
use style::color::AbsoluteColor;
|
||||
@@ -119,9 +120,9 @@ impl VirtualMethods for HTMLBodyElement {
|
||||
.attribute_affects_presentational_hints(attr)
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
if !context.tree_is_in_a_document_tree {
|
||||
|
||||
Reference in New Issue
Block a user