diff options
author | chickenleaf <lashwinib@gmail.com> | 2024-10-25 18:14:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-25 12:44:15 +0000 |
commit | 7ad8822d94f22969af4ebe1130a0050e78fbc21b (patch) | |
tree | f7f49b0ab4815ec46ddbb54cdff679657db0ff45 /components/script/dom/fontfaceset.rs | |
parent | 3b5dc069ae338ebf373471e32874ea8f4ba3ade3 (diff) | |
download | servo-7ad8822d94f22969af4ebe1130a0050e78fbc21b.tar.gz servo-7ad8822d94f22969af4ebe1130a0050e78fbc21b.zip |
cangc fixes in several files + event.rs + rtcpeerconnection.rs (#34002)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
Diffstat (limited to 'components/script/dom/fontfaceset.rs')
-rw-r--r-- | components/script/dom/fontfaceset.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/fontfaceset.rs b/components/script/dom/fontfaceset.rs index 0774f2b1617..fa83e8708a1 100644 --- a/components/script/dom/fontfaceset.rs +++ b/components/script/dom/fontfaceset.rs @@ -24,16 +24,16 @@ pub struct FontFaceSet { } impl FontFaceSet { - pub fn new_inherited(global: &GlobalScope) -> Self { + pub fn new_inherited(global: &GlobalScope, can_gc: CanGc) -> Self { FontFaceSet { target: EventTarget::new_inherited(), - promise: Promise::new(global, CanGc::note()), + promise: Promise::new(global, can_gc), } } pub fn new(global: &GlobalScope, proto: Option<HandleObject>, can_gc: CanGc) -> DomRoot<Self> { reflect_dom_object_with_proto( - Box::new(FontFaceSet::new_inherited(global)), + Box::new(FontFaceSet::new_inherited(global, can_gc)), global, proto, can_gc, |