| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef CSSFontFace_h | 26 #ifndef CSSFontFace_h |
| 27 #define CSSFontFace_h | 27 #define CSSFontFace_h |
| 28 | 28 |
| 29 #include "core/css/CSSFontFaceRule.h" | 29 #include "core/css/CSSFontFaceRule.h" |
| 30 #include "core/css/CSSFontFaceSource.h" | 30 #include "core/css/CSSFontFaceSource.h" |
| 31 #include "core/platform/graphics/FontTraitsMask.h" | 31 #include "core/platform/graphics/FontTraitsMask.h" |
| 32 #include <wtf/Forward.h> | 32 #include "wtf/Forward.h" |
| 33 #include <wtf/HashSet.h> | 33 #include "wtf/HashSet.h" |
| 34 #include <wtf/PassRefPtr.h> | 34 #include "wtf/PassRefPtr.h" |
| 35 #include <wtf/RefCounted.h> | 35 #include "wtf/RefCounted.h" |
| 36 #include <wtf/unicode/Unicode.h> | 36 #include "wtf/Vector.h" |
| 37 #include <wtf/Vector.h> | |
| 38 | 37 |
| 39 namespace WebCore { | 38 namespace WebCore { |
| 40 | 39 |
| 41 class CSSSegmentedFontFace; | 40 class CSSSegmentedFontFace; |
| 42 class FontDescription; | 41 class FontDescription; |
| 43 class SimpleFontData; | 42 class SimpleFontData; |
| 44 | 43 |
| 45 class CSSFontFace : public RefCounted<CSSFontFace> { | 44 class CSSFontFace : public RefCounted<CSSFontFace> { |
| 46 public: | 45 public: |
| 47 static PassRefPtr<CSSFontFace> create(FontTraitsMask traitsMask, PassRefPtr<
CSSFontFaceRule> rule, bool isLocalFallback = false) { return adoptRef(new CSSFo
ntFace(traitsMask, rule, isLocalFallback)); } | 46 static PassRefPtr<CSSFontFace> create(FontTraitsMask traitsMask, PassRefPtr<
CSSFontFaceRule> rule, bool isLocalFallback = false) { return adoptRef(new CSSFo
ntFace(traitsMask, rule, isLocalFallback)); } |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 Vector<OwnPtr<CSSFontFaceSource> > m_sources; | 106 Vector<OwnPtr<CSSFontFaceSource> > m_sources; |
| 108 CSSFontFaceSource* m_activeSource; | 107 CSSFontFaceSource* m_activeSource; |
| 109 bool m_isLocalFallback; | 108 bool m_isLocalFallback; |
| 110 LoadState m_loadState; | 109 LoadState m_loadState; |
| 111 RefPtr<CSSFontFaceRule> m_rule; | 110 RefPtr<CSSFontFaceRule> m_rule; |
| 112 }; | 111 }; |
| 113 | 112 |
| 114 } | 113 } |
| 115 | 114 |
| 116 #endif | 115 #endif |
| OLD | NEW |