mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibWeb/CSS: Implement FontFaceSet.onloading
This commit is contained in:
parent
c6a6a7c4f0
commit
4210586730
Notes:
sideshowbarker
2024-07-17 02:21:14 +09:00
Author: https://github.com/jamierocks
Commit: 4210586730
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/85
4 changed files with 21 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Andrew Kaster <akaster@serenityos.org>
|
||||
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -29,6 +30,10 @@ public:
|
|||
JS::NonnullGCPtr<FontFaceSet> add(JS::Handle<FontFace>);
|
||||
bool delete_(JS::Handle<FontFace>);
|
||||
void clear();
|
||||
|
||||
void set_onloading(WebIDL::CallbackType*);
|
||||
WebIDL::CallbackType* onloading();
|
||||
|
||||
JS::ThrowCompletionOr<JS::NonnullGCPtr<JS::Promise>> load(String const& font, String const& text);
|
||||
|
||||
JS::NonnullGCPtr<JS::Promise> ready() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue