LibWeb/CSS: Implement FontFaceSet.onloadingerror

This commit is contained in:
Jamie Mansfield 2024-06-06 20:02:55 +01:00 committed by Andreas Kling
commit bbd82265e1
Notes: sideshowbarker 2024-07-17 03:19:14 +09:00
4 changed files with 16 additions and 1 deletions

View file

@ -109,6 +109,18 @@ WebIDL::CallbackType* FontFaceSet::onloadingdone()
return event_handler_attribute(HTML::EventNames::loadingdone);
}
// https://drafts.csswg.org/css-font-loading/#dom-fontfaceset-onloadingerror
void FontFaceSet::set_onloadingerror(WebIDL::CallbackType* event_handler)
{
set_event_handler_attribute(HTML::EventNames::loadingerror, event_handler);
}
// https://drafts.csswg.org/css-font-loading/#dom-fontfaceset-onloadingerror
WebIDL::CallbackType* FontFaceSet::onloadingerror()
{
return event_handler_attribute(HTML::EventNames::loadingerror);
}
// https://drafts.csswg.org/css-font-loading/#dom-fontfaceset-load
JS::ThrowCompletionOr<JS::NonnullGCPtr<JS::Promise>> FontFaceSet::load(String const&, String const&)
{