mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1072101 - Part 1: Implement FontFaceSet.size. r=peterv
This commit is contained in:
parent
31c13b72d8
commit
b7a4daf2fd
@ -17,10 +17,8 @@ enum FontFaceSetLoadStatus { "loading", "loaded" };
|
||||
[Pref="layout.css.font-loading-api.enabled"]
|
||||
interface FontFaceSet : EventTarget {
|
||||
|
||||
// Emulate the Set interface, until we can extend Set correctly.
|
||||
// Implementing these commented out operations and the iterator is
|
||||
// bug 1072101.
|
||||
// readonly attribute unsigned long size;
|
||||
// Emulate setlike behavior until we can use that directly.
|
||||
readonly attribute unsigned long size;
|
||||
[Throws] void add(FontFace font);
|
||||
boolean has(FontFace font);
|
||||
[Throws] boolean delete(FontFace font);
|
||||
|
@ -348,7 +348,7 @@ FontFaceSet::IndexedGetter(uint32_t aIndex, bool& aFound)
|
||||
}
|
||||
|
||||
uint32_t
|
||||
FontFaceSet::Length()
|
||||
FontFaceSet::Size()
|
||||
{
|
||||
mPresContext->FlushUserFontSet();
|
||||
|
||||
|
@ -176,8 +176,9 @@ public:
|
||||
void Clear();
|
||||
bool Delete(FontFace& aFontFace, mozilla::ErrorResult& aRv);
|
||||
bool Has(FontFace& aFontFace);
|
||||
uint32_t Size();
|
||||
FontFace* IndexedGetter(uint32_t aIndex, bool& aFound);
|
||||
uint32_t Length();
|
||||
uint32_t Length() { return Size(); }
|
||||
|
||||
private:
|
||||
~FontFaceSet();
|
||||
|
Loading…
Reference in New Issue
Block a user