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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 public: | 46 public: |
47 static PassRefPtr<CSSFontFace> create(FontTraitsMask traitsMask, Handle<CSSF
ontFaceRule> rule, bool isLocalFallback = false) { return adoptRef(new CSSFontFa
ce(traitsMask, rule, isLocalFallback)); } | 47 static PassRefPtr<CSSFontFace> create(FontTraitsMask traitsMask, Handle<CSSF
ontFaceRule> rule, bool isLocalFallback = false) { return adoptRef(new CSSFontFa
ce(traitsMask, rule, isLocalFallback)); } |
48 | 48 |
49 FontTraitsMask traitsMask() const { return m_traitsMask; } | 49 FontTraitsMask traitsMask() const { return m_traitsMask; } |
50 | 50 |
51 struct UnicodeRange; | 51 struct UnicodeRange; |
52 | 52 |
53 void addRange(UChar32 from, UChar32 to) { m_ranges.append(UnicodeRange(from,
to)); } | 53 void addRange(UChar32 from, UChar32 to) { m_ranges.append(UnicodeRange(from,
to)); } |
54 const Vector<UnicodeRange>& ranges() const { return m_ranges; } | 54 const Vector<UnicodeRange>& ranges() const { return m_ranges; } |
55 | 55 |
56 void addedToSegmentedFontFace(CSSSegmentedFontFace*); | 56 void addedToSegmentedFontFace(Handle<CSSSegmentedFontFace>); |
57 void removedFromSegmentedFontFace(CSSSegmentedFontFace*); | 57 void removedFromSegmentedFontFace(Handle<CSSSegmentedFontFace>); |
58 | 58 |
59 bool isLoaded() const; | 59 bool isLoaded() const; |
60 bool isValid() const; | 60 bool isValid() const; |
61 | 61 |
62 bool isLocalFallback() const { return m_isLocalFallback; } | 62 bool isLocalFallback() const { return m_isLocalFallback; } |
63 | 63 |
64 void addSource(PassOwnPtr<CSSFontFaceSource>); | 64 void addSource(PassOwnPtr<CSSFontFaceSource>); |
65 | 65 |
66 void fontLoaded(CSSFontFaceSource*); | 66 void fontLoaded(CSSFontFaceSource*); |
67 | 67 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 CSSFontFaceSource* m_activeSource; | 107 CSSFontFaceSource* m_activeSource; |
108 bool m_isLocalFallback; | 108 bool m_isLocalFallback; |
109 LoadState m_loadState; | 109 LoadState m_loadState; |
110 Persistent<CSSFontFaceRule> m_rule; | 110 Persistent<CSSFontFaceRule> m_rule; |
111 void notifyFontLoader(LoadState); | 111 void notifyFontLoader(LoadState); |
112 }; | 112 }; |
113 | 113 |
114 } | 114 } |
115 | 115 |
116 #endif | 116 #endif |
OLD | NEW |