mirror of
https://github.com/servo/servo
synced 2026-04-28 02:19:14 +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
@@ -299,8 +299,10 @@ impl VirtualMethods for HTMLStyleElement {
|
||||
Some(self.upcast::<HTMLElement>() as &dyn VirtualMethods)
|
||||
}
|
||||
|
||||
fn children_changed(&self, mutation: &ChildrenMutation) {
|
||||
self.super_type().unwrap().children_changed(mutation);
|
||||
fn children_changed(&self, mutation: &ChildrenMutation, can_gc: CanGc) {
|
||||
self.super_type()
|
||||
.unwrap()
|
||||
.children_changed(mutation, can_gc);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#update-a-style-block
|
||||
// Handles the case when:
|
||||
|
||||
Reference in New Issue
Block a user