Line data Source code
1 : /* This Source Code Form is subject to the terms of the Mozilla Public
2 : * License, v. 2.0. If a copy of the MPL was not distributed with this
3 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 :
5 : #ifndef __nsFontFace_h__
6 : #define __nsFontFace_h__
7 :
8 : #include "nsIDOMFontFace.h"
9 :
10 : class gfxFontEntry;
11 : class gfxFontGroup;
12 :
13 : class nsFontFace : public nsIDOMFontFace
14 : {
15 : public:
16 : NS_DECL_ISUPPORTS
17 : NS_DECL_NSIDOMFONTFACE
18 :
19 : nsFontFace(gfxFontEntry* aFontEntry,
20 : gfxFontGroup* aFontGroup,
21 : uint8_t aMatchInfo);
22 :
23 : gfxFontEntry* GetFontEntry() const { return mFontEntry.get(); }
24 :
25 0 : void AddMatchType(uint8_t aMatchType) {
26 0 : mMatchType |= aMatchType;
27 0 : }
28 :
29 : protected:
30 : virtual ~nsFontFace();
31 :
32 : RefPtr<gfxFontEntry> mFontEntry;
33 : RefPtr<gfxFontGroup> mFontGroup;
34 : uint8_t mMatchType;
35 : };
36 :
37 : #endif // __nsFontFace_h__
|