mirror of
https://github.com/servo/servo
synced 2026-05-01 20:07:22 +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:
@@ -4,6 +4,7 @@
|
||||
|
||||
use dom_struct::dom_struct;
|
||||
use html5ever::{LocalName, Prefix, local_name};
|
||||
use js::context::JSContext;
|
||||
use js::rust::HandleObject;
|
||||
use servo_url::ServoUrl;
|
||||
|
||||
@@ -163,8 +164,8 @@ impl VirtualMethods for HTMLBaseElement {
|
||||
}
|
||||
}
|
||||
|
||||
fn bind_to_tree(&self, context: &BindContext, can_gc: CanGc) {
|
||||
self.super_type().unwrap().bind_to_tree(context, can_gc);
|
||||
fn bind_to_tree(&self, cx: &mut JSContext, context: &BindContext) {
|
||||
self.super_type().unwrap().bind_to_tree(cx, context);
|
||||
// https://html.spec.whatwg.org/multipage/#frozen-base-url
|
||||
// > The base element becomes the first base element in tree order with an href content attribute in its Document.
|
||||
let document = self.owner_document();
|
||||
|
||||
Reference in New Issue
Block a user