mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1072101 - Part 5: Remove indexed property access on FontFaceSet. r=peterv
This commit is contained in:
parent
e22cf1444a
commit
bbb61606f7
@ -64,12 +64,3 @@ interface FontFaceSet : EventTarget {
|
||||
// loading state, "loading" while one or more fonts loading, "loaded" otherwise
|
||||
readonly attribute FontFaceSetLoadStatus status;
|
||||
};
|
||||
|
||||
// This provides access to the FontFace objects in the FontFaceSet until we
|
||||
// get iterators working (bug 1072101). Don't enable the pref for the CSS Font
|
||||
// Loading API until the iterator is available, as we don't want to expose more
|
||||
// indexed properties on the Web.
|
||||
partial interface FontFaceSet {
|
||||
getter FontFace (unsigned long index);
|
||||
readonly attribute unsigned long length;
|
||||
};
|
||||
|
@ -345,14 +345,6 @@ FontFaceSet::GetFontFaceAt(uint32_t aIndex)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
FontFace*
|
||||
FontFaceSet::IndexedGetter(uint32_t aIndex, bool& aFound)
|
||||
{
|
||||
FontFace* f = GetFontFaceAt(aIndex);
|
||||
aFound = !!f;
|
||||
return f;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
FontFaceSet::Size()
|
||||
{
|
||||
|
@ -184,8 +184,6 @@ public:
|
||||
void ForEach(JSContext* aCx, FontFaceSetForEachCallback& aCallback,
|
||||
JS::Handle<JS::Value> aThisArg,
|
||||
mozilla::ErrorResult& aRv);
|
||||
FontFace* IndexedGetter(uint32_t aIndex, bool& aFound);
|
||||
uint32_t Length() { return Size(); }
|
||||
|
||||
private:
|
||||
~FontFaceSet();
|
||||
|
Loading…
Reference in New Issue
Block a user