mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 05:22:24 +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)
|
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_set_entries(set_entries)
|
||||||
, m_ready_promise(ready_promise)
|
, m_ready_promise(ready_promise)
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,11 +11,12 @@
|
||||||
#include <LibWeb/Bindings/FontFaceSetPrototype.h>
|
#include <LibWeb/Bindings/FontFaceSetPrototype.h>
|
||||||
#include <LibWeb/Bindings/PlatformObject.h>
|
#include <LibWeb/Bindings/PlatformObject.h>
|
||||||
#include <LibWeb/CSS/FontFace.h>
|
#include <LibWeb/CSS/FontFace.h>
|
||||||
|
#include <LibWeb/DOM/EventTarget.h>
|
||||||
|
|
||||||
namespace Web::CSS {
|
namespace Web::CSS {
|
||||||
|
|
||||||
class FontFaceSet final : public Bindings::PlatformObject {
|
class FontFaceSet final : public DOM::EventTarget {
|
||||||
WEB_PLATFORM_OBJECT(FontFaceSet, Bindings::PlatformObject);
|
WEB_PLATFORM_OBJECT(FontFaceSet, DOM::EventTarget);
|
||||||
JS_DECLARE_ALLOCATOR(FontFaceSet);
|
JS_DECLARE_ALLOCATOR(FontFaceSet);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#import <CSS/FontFace.idl>
|
#import <CSS/FontFace.idl>
|
||||||
|
#import <DOM/EventTarget.idl>
|
||||||
|
|
||||||
dictionary FontFaceSetLoadEventInit : EventInit {
|
dictionary FontFaceSetLoadEventInit : EventInit {
|
||||||
sequence<FontFace> fontfaces = [];
|
sequence<FontFace> fontfaces = [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue