| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 size_t size() const { return m_ranges.size(); } | 98 size_t size() const { return m_ranges.size(); } |
| 99 const UnicodeRange& rangeAt(size_t i) const { return m_ranges[i]; } | 99 const UnicodeRange& rangeAt(size_t i) const { return m_ranges[i]; } |
| 100 private: | 100 private: |
| 101 Vector<UnicodeRange> m_ranges; // If empty, represents the whole code sp
ace. | 101 Vector<UnicodeRange> m_ranges; // If empty, represents the whole code sp
ace. |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 FontFace::LoadStatus loadStatus() const { return m_fontFace->loadStatus(); } | 104 FontFace::LoadStatus loadStatus() const { return m_fontFace->loadStatus(); } |
| 105 void willUseFontData(const FontDescription&); | 105 void willUseFontData(const FontDescription&); |
| 106 void load(const FontDescription&, CSSFontSelector* = 0); | 106 void load(const FontDescription&, CSSFontSelector* = 0); |
| 107 | 107 |
| 108 bool hadBlankText() { return isValid() && m_sources.first()->hadBlankText();
} |
| 109 |
| 108 private: | 110 private: |
| 109 void setLoadStatus(FontFace::LoadStatus); | 111 void setLoadStatus(FontFace::LoadStatus); |
| 110 | 112 |
| 111 UnicodeRangeSet m_ranges; | 113 UnicodeRangeSet m_ranges; |
| 112 CSSSegmentedFontFace* m_segmentedFontFace; | 114 CSSSegmentedFontFace* m_segmentedFontFace; |
| 113 Deque<OwnPtr<CSSFontFaceSource> > m_sources; | 115 Deque<OwnPtr<CSSFontFaceSource> > m_sources; |
| 114 FontFace* m_fontFace; | 116 FontFace* m_fontFace; |
| 115 }; | 117 }; |
| 116 | 118 |
| 117 } | 119 } |
| 118 | 120 |
| 119 #endif | 121 #endif |
| OLD | NEW |