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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 void removedFromSegmentedFontFace(CSSSegmentedFontFace*); | 56 void removedFromSegmentedFontFace(CSSSegmentedFontFace*); |
57 | 57 |
58 bool isLoaded() const; | 58 bool isLoaded() const; |
59 bool isValid() const; | 59 bool isValid() const; |
60 | 60 |
61 bool isLocalFallback() const { return m_isLocalFallback; } | 61 bool isLocalFallback() const { return m_isLocalFallback; } |
62 | 62 |
63 void addSource(CSSFontFaceSource*); | 63 void addSource(CSSFontFaceSource*); |
64 | 64 |
65 void fontLoaded(CSSFontFaceSource*); | 65 void fontLoaded(CSSFontFaceSource*); |
| 66 void retireCustomFont(SimpleFontData*); |
66 | 67 |
67 SimpleFontData* getFontData(const FontDescription&, bool syntheticBold, bool
syntheticItalic); | 68 SimpleFontData* getFontData(const FontDescription&, bool syntheticBold, bool
syntheticItalic); |
68 | 69 |
69 struct UnicodeRange { | 70 struct UnicodeRange { |
70 UnicodeRange(UChar32 from, UChar32 to) | 71 UnicodeRange(UChar32 from, UChar32 to) |
71 : m_from(from) | 72 : m_from(from) |
72 , m_to(to) | 73 , m_to(to) |
73 { | 74 { |
74 } | 75 } |
75 | 76 |
(...skipping 21 matching lines...) Expand all Loading... |
97 Vector<UnicodeRange> m_ranges; | 98 Vector<UnicodeRange> m_ranges; |
98 HashSet<CSSSegmentedFontFace*> m_segmentedFontFaces; | 99 HashSet<CSSSegmentedFontFace*> m_segmentedFontFaces; |
99 Vector<CSSFontFaceSource*> m_sources; | 100 Vector<CSSFontFaceSource*> m_sources; |
100 CSSFontFaceSource* m_activeSource; | 101 CSSFontFaceSource* m_activeSource; |
101 bool m_isLocalFallback; | 102 bool m_isLocalFallback; |
102 }; | 103 }; |
103 | 104 |
104 } | 105 } |
105 | 106 |
106 #endif | 107 #endif |
OLD | NEW |