aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/fontface.rs
diff options
context:
space:
mode:
authorYerkebulan Tulibergenov <yerkebulan@gmail.com>2025-02-23 04:12:21 -0800
committerGitHub <noreply@github.com>2025-02-23 12:12:21 +0000
commit0383ba9a5b940de76823462ebc1b95298ea50903 (patch)
tree23c9539a19729c7ec065dbe6cfb9bb2843a2721c /components/script/dom/fontface.rs
parentadb831eefea3b98369dab56fa1ef4f668900974c (diff)
downloadservo-0383ba9a5b940de76823462ebc1b95298ea50903.tar.gz
servo-0383ba9a5b940de76823462ebc1b95298ea50903.zip
refactor: add CanGc as argument to Promise::resolve (#35616)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
Diffstat (limited to 'components/script/dom/fontface.rs')
-rw-r--r--components/script/dom/fontface.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/fontface.rs b/components/script/dom/fontface.rs
index 9fb753600fa..f1e68f0941d 100644
--- a/components/script/dom/fontface.rs
+++ b/components/script/dom/fontface.rs
@@ -514,7 +514,7 @@ impl FontFaceMethods<crate::DomTypeHolder> for FontFace {
font_face.status.set(FontFaceLoadStatus::Loaded);
let old_template = font_face.template.borrow_mut().replace((family_name, template));
debug_assert!(old_template.is_none(), "FontFace's template must be intialized only once");
- font_face.font_status_promise.resolve_native(&font_face);
+ font_face.font_status_promise.resolve_native(&font_face, CanGc::note());
}
}