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