mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-19 07:49:05 +00:00
LibWeb: Add stub implementation of FontFaceSet and Document.fonts
This is now enough for duolingo to load and use its fallback fonts.
This commit is contained in:
parent
2c31d7dddc
commit
e10721f1b5
Notes:
sideshowbarker
2024-07-17 05:03:11 +09:00
Author: https://github.com/ADKaster
Commit: e10721f1b5
Pull-request: https://github.com/SerenityOS/serenity/pull/24255
Issue: https://github.com/SerenityOS/serenity/issues/22014
13 changed files with 174 additions and 1 deletions
|
@ -256,6 +256,9 @@ public:
|
|||
JS::NonnullGCPtr<HTMLCollection> scripts();
|
||||
JS::NonnullGCPtr<HTML::HTMLAllCollection> all();
|
||||
|
||||
// https://drafts.csswg.org/css-font-loading/#font-source
|
||||
JS::NonnullGCPtr<CSS::FontFaceSet> fonts();
|
||||
|
||||
void clear();
|
||||
void capture_events();
|
||||
void release_events();
|
||||
|
@ -810,6 +813,9 @@ private:
|
|||
JS::GCPtr<HTMLCollection> m_scripts;
|
||||
JS::GCPtr<HTML::HTMLAllCollection> m_all;
|
||||
|
||||
// https://drafts.csswg.org/css-font-loading/#font-source
|
||||
JS::GCPtr<CSS::FontFaceSet> m_fonts;
|
||||
|
||||
// https://html.spec.whatwg.org/#completely-loaded-time
|
||||
Optional<AK::UnixDateTime> m_completely_loaded_time;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue