| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 class UnicodeRangeSet { | 83 class UnicodeRangeSet { |
| 84 public: | 84 public: |
| 85 void add(UChar32 from, UChar32 to) { m_ranges.append(UnicodeRange(from,
to)); } | 85 void add(UChar32 from, UChar32 to) { m_ranges.append(UnicodeRange(from,
to)); } |
| 86 bool intersectsWith(const String&) const; | 86 bool intersectsWith(const String&) const; |
| 87 size_t size() const { return m_ranges.size(); } | 87 size_t size() const { return m_ranges.size(); } |
| 88 const UnicodeRange& rangeAt(size_t i) const { return m_ranges[i]; } | 88 const UnicodeRange& rangeAt(size_t i) const { return m_ranges[i]; } |
| 89 private: | 89 private: |
| 90 Vector<UnicodeRange> m_ranges; | 90 Vector<UnicodeRange> m_ranges; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 #if ENABLE(SVG_FONTS) | |
| 94 bool hasSVGFontFaceSource() const; | |
| 95 #endif | |
| 96 | |
| 97 FontFace::LoadStatus loadStatus() const { return m_fontFace ? m_fontFace->lo
adStatus() : FontFace::Loaded; } | 93 FontFace::LoadStatus loadStatus() const { return m_fontFace ? m_fontFace->lo
adStatus() : FontFace::Loaded; } |
| 98 void willUseFontData(const FontDescription&); | 94 void willUseFontData(const FontDescription&); |
| 99 | 95 |
| 100 private: | 96 private: |
| 101 CSSFontFace(PassRefPtr<FontFace> fontFace) | 97 CSSFontFace(PassRefPtr<FontFace> fontFace) |
| 102 : m_segmentedFontFace(0) | 98 : m_segmentedFontFace(0) |
| 103 , m_activeSource(0) | 99 , m_activeSource(0) |
| 104 , m_fontFace(fontFace) | 100 , m_fontFace(fontFace) |
| 105 { | 101 { |
| 106 } | 102 } |
| 107 void setLoadStatus(FontFace::LoadStatus); | 103 void setLoadStatus(FontFace::LoadStatus); |
| 108 | 104 |
| 109 UnicodeRangeSet m_ranges; | 105 UnicodeRangeSet m_ranges; |
| 110 CSSSegmentedFontFace* m_segmentedFontFace; | 106 CSSSegmentedFontFace* m_segmentedFontFace; |
| 111 Vector<OwnPtr<CSSFontFaceSource> > m_sources; | 107 Vector<OwnPtr<CSSFontFaceSource> > m_sources; |
| 112 CSSFontFaceSource* m_activeSource; | 108 CSSFontFaceSource* m_activeSource; |
| 113 RefPtr<FontFace> m_fontFace; | 109 RefPtr<FontFace> m_fontFace; |
| 114 }; | 110 }; |
| 115 | 111 |
| 116 } | 112 } |
| 117 | 113 |
| 118 #endif | 114 #endif |
| OLD | NEW |