mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 13:02:28 +00:00
LibWeb/CSS: FontFaceSet extends EventTarget
This commit is contained in:
parent
839dc01280
commit
c6a6a7c4f0
Notes:
sideshowbarker
2024-07-17 02:56:25 +09:00
Author: https://github.com/jamierocks
Commit: c6a6a7c4f0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/85
3 changed files with 5 additions and 3 deletions
|
@ -39,7 +39,7 @@ JS::NonnullGCPtr<FontFaceSet> FontFaceSet::create(JS::Realm& realm)
|
|||
}
|
||||
|
||||
FontFaceSet::FontFaceSet(JS::Realm& realm, JS::NonnullGCPtr<WebIDL::Promise> ready_promise, JS::NonnullGCPtr<JS::Set> set_entries)
|
||||
: Bindings::PlatformObject(realm)
|
||||
: DOM::EventTarget(realm)
|
||||
, m_set_entries(set_entries)
|
||||
, m_ready_promise(ready_promise)
|
||||
{
|
||||
|
|
|
@ -11,11 +11,12 @@
|
|||
#include <LibWeb/Bindings/FontFaceSetPrototype.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/CSS/FontFace.h>
|
||||
#include <LibWeb/DOM/EventTarget.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
class FontFaceSet final : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(FontFaceSet, Bindings::PlatformObject);
|
||||
class FontFaceSet final : public DOM::EventTarget {
|
||||
WEB_PLATFORM_OBJECT(FontFaceSet, DOM::EventTarget);
|
||||
JS_DECLARE_ALLOCATOR(FontFaceSet);
|
||||
|
||||
public:
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#import <CSS/FontFace.idl>
|
||||
#import <DOM/EventTarget.idl>
|
||||
|
||||
dictionary FontFaceSetLoadEventInit : EventInit {
|
||||
sequence<FontFace> fontfaces = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue