mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb/CSS: Implement FontFaceSet.onloadingerror
This commit is contained in:
parent
e56e09b820
commit
bbd82265e1
Notes:
sideshowbarker
2024-07-17 03:19:14 +09:00
Author: https://github.com/jamierocks
Commit: bbd82265e1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/85
4 changed files with 16 additions and 1 deletions
|
@ -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&)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue