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 __nsFontFace_h__ michael@0: #define __nsFontFace_h__ michael@0: michael@0: #include "nsIDOMFontFace.h" michael@0: #include "nsAutoPtr.h" michael@0: michael@0: class gfxFontEntry; michael@0: class gfxFontGroup; michael@0: class nsCSSFontFaceRule; michael@0: michael@0: class nsFontFace : public nsIDOMFontFace michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIDOMFONTFACE michael@0: michael@0: nsFontFace(gfxFontEntry* aFontEntry, michael@0: gfxFontGroup* aFontGroup, michael@0: uint8_t aMatchInfo); michael@0: virtual ~nsFontFace(); michael@0: michael@0: gfxFontEntry* GetFontEntry() const { return mFontEntry.get(); } michael@0: michael@0: void AddMatchType(uint8_t aMatchType) { michael@0: mMatchType |= aMatchType; michael@0: } michael@0: michael@0: protected: michael@0: nsRefPtr mFontEntry; michael@0: nsRefPtr mFontGroup; michael@0: uint8_t mMatchType; michael@0: }; michael@0: michael@0: #endif // __nsFontFace_h__