mirror of
https://github.com/servo/servo
synced 2026-04-27 18:07:52 +02:00
script: add CanGc as argument to VirtualMethods::children_changed (#40325)
script: add CanGc as argument to VirtualMethods::children_changed Testing: These changes do not require tests because they are a refactor. Addresses part of https://github.com/servo/servo/issues/34573 Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9ca18ad121
commit
5cc786a98e
@@ -727,12 +727,12 @@ impl VirtualMethods for HTMLSelectElement {
|
||||
.hide_embedder_control(self.upcast());
|
||||
}
|
||||
|
||||
fn children_changed(&self, mutation: &ChildrenMutation) {
|
||||
fn children_changed(&self, mutation: &ChildrenMutation, can_gc: CanGc) {
|
||||
if let Some(s) = self.super_type() {
|
||||
s.children_changed(mutation);
|
||||
s.children_changed(mutation, can_gc);
|
||||
}
|
||||
|
||||
self.update_shadow_tree(CanGc::note());
|
||||
self.update_shadow_tree(can_gc);
|
||||
}
|
||||
|
||||
fn parse_plain_attribute(&self, local_name: &LocalName, value: DOMString) -> AttrValue {
|
||||
|
||||
Reference in New Issue
Block a user