| 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*); | |
| 67 | 66 |
| 68 SimpleFontData* getFontData(const FontDescription&, bool syntheticBold, bool
syntheticItalic); | 67 SimpleFontData* getFontData(const FontDescription&, bool syntheticBold, bool
syntheticItalic); |
| 69 | 68 |
| 70 struct UnicodeRange { | 69 struct UnicodeRange { |
| 71 UnicodeRange(UChar32 from, UChar32 to) | 70 UnicodeRange(UChar32 from, UChar32 to) |
| 72 : m_from(from) | 71 : m_from(from) |
| 73 , m_to(to) | 72 , m_to(to) |
| 74 { | 73 { |
| 75 } | 74 } |
| 76 | 75 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 98 Vector<UnicodeRange> m_ranges; | 97 Vector<UnicodeRange> m_ranges; |
| 99 HashSet<CSSSegmentedFontFace*> m_segmentedFontFaces; | 98 HashSet<CSSSegmentedFontFace*> m_segmentedFontFaces; |
| 100 Vector<CSSFontFaceSource*> m_sources; | 99 Vector<CSSFontFaceSource*> m_sources; |
| 101 CSSFontFaceSource* m_activeSource; | 100 CSSFontFaceSource* m_activeSource; |
| 102 bool m_isLocalFallback; | 101 bool m_isLocalFallback; |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 } | 104 } |
| 106 | 105 |
| 107 #endif | 106 #endif |
| OLD | NEW |