diff options
author | Kunga Derick Abongho <abonghoderick@gmail.com> | 2025-03-29 14:09:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-29 13:09:56 +0000 |
commit | 83da63f638b15009b842a1f712fa5116f0e2d466 (patch) | |
tree | 7a81fe22a5726a2c0742e42da36a43cc2145406f /components/script/dom/htmliframeelement.rs | |
parent | b5c8164e9982ebd6212ad21910826ce8b2631930 (diff) | |
download | servo-83da63f638b15009b842a1f712fa5116f0e2d466.tar.gz servo-83da63f638b15009b842a1f712fa5116f0e2d466.zip |
resolve issue #36074 new_js_regex and matches_js_regex need a CanGc argument (#36111)
* 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>
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index 2c0041124cf..dd4277d18cb 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -676,8 +676,10 @@ impl VirtualMethods for HTMLIFrameElement { Some(self.upcast::<HTMLElement>() as &dyn VirtualMethods) } - 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); match *attr.local_name() { local_name!("sandbox") => { self.sandbox_allowance @@ -761,8 +763,8 @@ impl VirtualMethods for HTMLIFrameElement { } } - fn unbind_from_tree(&self, context: &UnbindContext) { - self.super_type().unwrap().unbind_from_tree(context); + fn unbind_from_tree(&self, context: &UnbindContext, can_gc: CanGc) { + self.super_type().unwrap().unbind_from_tree(context, can_gc); let blocker = &self.load_blocker; LoadBlocker::terminate(blocker, CanGc::note()); |