2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2011-06-16 10:31:36 +04:00
|
|
|
|
|
|
|
#ifndef __nsFontFace_h__
|
|
|
|
#define __nsFontFace_h__
|
|
|
|
|
|
|
|
#include "nsIDOMFontFace.h"
|
2013-10-02 01:02:16 +04:00
|
|
|
#include "nsAutoPtr.h"
|
2011-06-16 10:31:36 +04:00
|
|
|
|
2013-10-02 01:02:16 +04:00
|
|
|
class gfxFontEntry;
|
|
|
|
class gfxFontGroup;
|
2011-06-16 10:31:36 +04:00
|
|
|
|
2011-06-16 10:31:36 +04:00
|
|
|
class nsFontFace : public nsIDOMFontFace
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIDOMFONTFACE
|
|
|
|
|
2011-06-16 10:31:37 +04:00
|
|
|
nsFontFace(gfxFontEntry* aFontEntry,
|
2012-12-19 13:42:25 +04:00
|
|
|
gfxFontGroup* aFontGroup,
|
|
|
|
uint8_t aMatchInfo);
|
2011-06-16 10:31:36 +04:00
|
|
|
|
|
|
|
gfxFontEntry* GetFontEntry() const { return mFontEntry.get(); }
|
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
void AddMatchType(uint8_t aMatchType) {
|
2011-06-16 10:31:37 +04:00
|
|
|
mMatchType |= aMatchType;
|
|
|
|
}
|
|
|
|
|
2011-06-16 10:31:36 +04:00
|
|
|
protected:
|
2014-06-24 02:40:01 +04:00
|
|
|
virtual ~nsFontFace();
|
|
|
|
|
2015-10-18 08:24:48 +03:00
|
|
|
RefPtr<gfxFontEntry> mFontEntry;
|
|
|
|
RefPtr<gfxFontGroup> mFontGroup;
|
2012-08-22 19:56:38 +04:00
|
|
|
uint8_t mMatchType;
|
2011-06-16 10:31:36 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __nsFontFace_h__
|