michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef __nsFontFaceList_h__ michael@0: #define __nsFontFaceList_h__ michael@0: michael@0: #include "nsIDOMFontFaceList.h" michael@0: #include "nsIDOMFontFace.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsInterfaceHashtable.h" michael@0: #include "nsHashKeys.h" michael@0: michael@0: class gfxFontEntry; michael@0: class gfxTextRun; michael@0: michael@0: class nsFontFaceList : public nsIDOMFontFaceList michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIDOMFONTFACELIST michael@0: michael@0: nsFontFaceList(); michael@0: virtual ~nsFontFaceList(); michael@0: michael@0: nsresult AddFontsFromTextRun(gfxTextRun* aTextRun, michael@0: uint32_t aOffset, uint32_t aLength); michael@0: michael@0: protected: michael@0: nsInterfaceHashtable,nsIDOMFontFace> mFontFaces; michael@0: }; michael@0: michael@0: #endif // __nsFontFaceList_h__