webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
WebCore::FontFace Class Referencefinal

#include <FontFace.h>

Inheritance diagram for WebCore::FontFace:
WTF::RefCounted< FontFace > WebCore::CSSFontFace::Client WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase

Classes

struct  Descriptors
 

Public Types

enum  LoadStatus { LoadStatus::Unloaded, LoadStatus::Loading, LoadStatus::Loaded, LoadStatus::Error }
 
using Source = Variant< String, RefPtr< JSC::ArrayBuffer >, RefPtr< JSC::ArrayBufferView > >
 
using Promise = DOMPromise< IDLInterface< FontFace > >
 

Public Member Functions

virtual ~FontFace ()
 
ExceptionOr< voidsetFamily (const String &)
 
ExceptionOr< voidsetStyle (const String &)
 
ExceptionOr< voidsetWeight (const String &)
 
ExceptionOr< voidsetStretch (const String &)
 
ExceptionOr< voidsetUnicodeRange (const String &)
 
ExceptionOr< voidsetVariant (const String &)
 
ExceptionOr< voidsetFeatureSettings (const String &)
 
String family () const
 
String style () const
 
String weight () const
 
String stretch () const
 
String unicodeRange () const
 
String variant () const
 
String featureSettings () const
 
LoadStatus status () const
 
std::optional< Promise > & promise ()
 
void registerLoaded (Promise &&)
 
void adopt (CSSFontFace &)
 
void load ()
 
CSSFontFacebacking ()
 
void fontStateChanged (CSSFontFace &, CSSFontFace::Status oldState, CSSFontFace::Status newState) final
 
WeakPtr< FontFacecreateWeakPtr () const
 
void ref () final
 
void deref () final
 
- Public Member Functions inherited from WTF::RefCounted< FontFace >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::RefCountedBase
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 

Static Public Member Functions

static ExceptionOr< Ref< FontFace > > create (Document &, const String &family, Source &&, const Descriptors &)
 
static Ref< FontFacecreate (CSSFontFace &)
 
static RefPtr< CSSValueparseString (const String &, CSSPropertyID)
 

Additional Inherited Members

- Protected Member Functions inherited from WTF::RefCounted< FontFace >
 RefCounted ()
 
 RefCounted ()
 
 RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
- Protected Member Functions inherited from WTF::RefCountedBase
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 

Member Typedef Documentation

◆ Promise

◆ Source

Member Enumeration Documentation

◆ LoadStatus

Enumerator
Unloaded 
Loading 
Loaded 
Error 

Constructor & Destructor Documentation

◆ ~FontFace()

FontFace::~FontFace ( )
virtual

Member Function Documentation

◆ adopt()

void FontFace::adopt ( CSSFontFace newFace)

◆ backing()

CSSFontFace& WebCore::FontFace::backing ( )
inline

◆ create() [1/2]

ExceptionOr< Ref< FontFace > > FontFace::create ( Document document,
const String family,
Source &&  source,
const Descriptors descriptors 
)
static

◆ create() [2/2]

Ref< FontFace > FontFace::create ( CSSFontFace face)
static

◆ createWeakPtr()

WeakPtr< FontFace > FontFace::createWeakPtr ( ) const

◆ deref()

void WebCore::FontFace::deref ( )
inlinefinalvirtual

◆ family()

String FontFace::family ( ) const

◆ featureSettings()

String FontFace::featureSettings ( ) const

◆ fontStateChanged()

void FontFace::fontStateChanged ( CSSFontFace face,
CSSFontFace::Status  oldState,
CSSFontFace::Status  newState 
)
finalvirtual

Reimplemented from WebCore::CSSFontFace::Client.

◆ load()

void FontFace::load ( )

◆ parseString()

RefPtr< CSSValue > FontFace::parseString ( const String string,
CSSPropertyID  propertyID 
)
static

◆ promise()

std::optional<Promise>& WebCore::FontFace::promise ( )
inline

◆ ref()

void WebCore::FontFace::ref ( )
inlinefinalvirtual

◆ registerLoaded()

void FontFace::registerLoaded ( Promise &&  promise)

◆ setFamily()

ExceptionOr< void > FontFace::setFamily ( const String family)

◆ setFeatureSettings()

ExceptionOr< void > FontFace::setFeatureSettings ( const String featureSettings)

◆ setStretch()

ExceptionOr< void > FontFace::setStretch ( const String stretch)

◆ setStyle()

ExceptionOr< void > FontFace::setStyle ( const String style)

◆ setUnicodeRange()

ExceptionOr< void > FontFace::setUnicodeRange ( const String unicodeRange)

◆ setVariant()

ExceptionOr< void > FontFace::setVariant ( const String variant)

◆ setWeight()

ExceptionOr< void > FontFace::setWeight ( const String weight)

◆ status()

auto FontFace::status ( ) const

◆ stretch()

String FontFace::stretch ( ) const

◆ style()

String FontFace::style ( ) const

◆ unicodeRange()

String FontFace::unicodeRange ( ) const

◆ variant()

String FontFace::variant ( ) const

◆ weight()

String FontFace::weight ( ) const

The documentation for this class was generated from the following files: