mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibWeb/CSS: Implement add for FontFaceSet
There is still some work to do with some of the underying methods called inside this method (e.g is_css_connected) but this is a start.
This commit is contained in:
parent
9098e39a43
commit
14d62d7f31
Notes:
github-actions[bot]
2024-09-27 20:50:24 +00:00
Author: https://github.com/kostyafarber 🔰
Commit: 14d62d7f31
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1539
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 37 additions and 4 deletions
|
@ -27,7 +27,7 @@ public:
|
|||
|
||||
JS::NonnullGCPtr<JS::Set> set_entries() const { return m_set_entries; }
|
||||
|
||||
JS::NonnullGCPtr<FontFaceSet> add(JS::Handle<FontFace>);
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<FontFaceSet>> add(JS::Handle<FontFace>);
|
||||
bool delete_(JS::Handle<FontFace>);
|
||||
void clear();
|
||||
|
||||
|
@ -52,6 +52,10 @@ private:
|
|||
JS::NonnullGCPtr<JS::Set> m_set_entries;
|
||||
JS::GCPtr<WebIDL::Promise> m_ready_promise; // [[ReadyPromise]]
|
||||
|
||||
Vector<JS::NonnullGCPtr<FontFace>> m_loading_fonts {}; // [[LoadingFonts]]
|
||||
Vector<JS::NonnullGCPtr<FontFace>> m_loaded_fonts {}; // [[LoadedFonts]]
|
||||
Vector<JS::NonnullGCPtr<FontFace>> m_failed_fonts {}; // [[FailedFonts]]
|
||||
|
||||
Bindings::FontFaceSetLoadStatus m_status { Bindings::FontFaceSetLoadStatus::Loading };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue