mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
* new_js_regex and matches_js_regex need a CanGc argument Signed-off-by: dericko681 <abonghoderick@gmail.com> * new_js_regex and matches_js_regex need a CanGc argument Signed-off-by: dericko681 <abonghoderick@gmail.com> * edit Propagate CanGc arguments through new_js_regex and matches_js_regex Signed-off-by: dericko681 <abonghoderick@gmail.com> * Propagate CanGc arguments through new_js_regex and matches_js_regex Signed-off-by: dericko681 <abonghoderick@gmail.com> * Propagate CanGc arguments through new_js_regex and matches_js_regex Signed-off-by: dericko681 <abonghoderick@gmail.com> * Propagate CanGc arguments through new_js_regex and matches_js_regex Signed-off-by: dericko681 <abonghoderick@gmail.com> --------- Signed-off-by: dericko681 <abonghoderick@gmail.com>
This commit is contained in:
parent
b5c8164e99
commit
83da63f638
60 changed files with 600 additions and 435 deletions
|
@ -461,8 +461,10 @@ impl VirtualMethods for HTMLSlotElement {
|
|||
}
|
||||
|
||||
/// <https://dom.spec.whatwg.org/#shadow-tree-slots>
|
||||
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation) {
|
||||
self.super_type().unwrap().attribute_mutated(attr, mutation);
|
||||
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation, can_gc: CanGc) {
|
||||
self.super_type()
|
||||
.unwrap()
|
||||
.attribute_mutated(attr, mutation, can_gc);
|
||||
|
||||
if attr.local_name() == &local_name!("name") && attr.namespace() == &ns!() {
|
||||
if let Some(shadow_root) = self.containing_shadow_root() {
|
||||
|
@ -486,9 +488,9 @@ impl VirtualMethods for HTMLSlotElement {
|
|||
}
|
||||
}
|
||||
|
||||
fn bind_to_tree(&self, context: &super::node::BindContext) {
|
||||
fn bind_to_tree(&self, context: &super::node::BindContext, can_gc: CanGc) {
|
||||
if let Some(s) = self.super_type() {
|
||||
s.bind_to_tree(context);
|
||||
s.bind_to_tree(context, can_gc);
|
||||
}
|
||||
|
||||
if !context.tree_is_in_a_shadow_tree {
|
||||
|
@ -500,9 +502,9 @@ impl VirtualMethods for HTMLSlotElement {
|
|||
.register_slot(self);
|
||||
}
|
||||
|
||||
fn unbind_from_tree(&self, context: &super::node::UnbindContext) {
|
||||
fn unbind_from_tree(&self, context: &super::node::UnbindContext, can_gc: CanGc) {
|
||||
if let Some(s) = self.super_type() {
|
||||
s.unbind_from_tree(context);
|
||||
s.unbind_from_tree(context, can_gc);
|
||||
}
|
||||
|
||||
if let Some(shadow_root) = self.containing_shadow_root() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue