diff options
author | Yerkebulan Tulibergenov <yerkebulan@gmail.com> | 2025-02-23 04:12:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-23 12:12:21 +0000 |
commit | 0383ba9a5b940de76823462ebc1b95298ea50903 (patch) | |
tree | 23c9539a19729c7ec065dbe6cfb9bb2843a2721c /components/script/dom/fontface.rs | |
parent | adb831eefea3b98369dab56fa1ef4f668900974c (diff) | |
download | servo-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.rs | 2 |
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()); } } |