Bug 1072101 - Part 5: Remove indexed property access on FontFaceSet. r=peterv

This commit is contained in:
Cameron McCormack 2015-03-31 14:05:33 +11:00
parent e22cf1444a
commit bbb61606f7
3 changed files with 0 additions and 19 deletions

View File

@ -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;
};

View File

@ -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()
{

View File

@ -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();