mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
refactor: add CanGc as argument to Promise::resolve (#35616)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
parent
adb831eefe
commit
0383ba9a5b
57 changed files with 330 additions and 294 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue