| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the internal font implementation. | 2 * This file is part of the internal font implementation. |
| 3 * | 3 * |
| 4 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2007-2008 Torch Mobile, Inc. | 5 * Copyright (C) 2007-2008 Torch Mobile, Inc. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 bool isSegmented() const override; | 148 bool isSegmented() const override; |
| 149 bool shouldSkipDrawing() const override { | 149 bool shouldSkipDrawing() const override { |
| 150 return m_customFontData && m_customFontData->shouldSkipDrawing(); | 150 return m_customFontData && m_customFontData->shouldSkipDrawing(); |
| 151 } | 151 } |
| 152 | 152 |
| 153 const GlyphData& missingGlyphData() const { return m_missingGlyphData; } | 153 const GlyphData& missingGlyphData() const { return m_missingGlyphData; } |
| 154 void setMissingGlyphData(const GlyphData& glyphData) { | 154 void setMissingGlyphData(const GlyphData& glyphData) { |
| 155 m_missingGlyphData = glyphData; | 155 m_missingGlyphData = glyphData; |
| 156 } | 156 } |
| 157 | 157 |
| 158 bool canRenderCombiningCharacterSequence(const UChar*, size_t) const; | |
| 159 | |
| 160 CustomFontData* customFontData() const { return m_customFontData.get(); } | 158 CustomFontData* customFontData() const { return m_customFontData.get(); } |
| 161 | 159 |
| 162 protected: | 160 protected: |
| 163 SimpleFontData(const FontPlatformData&, | 161 SimpleFontData(const FontPlatformData&, |
| 164 PassRefPtr<CustomFontData> customData, | 162 PassRefPtr<CustomFontData> customData, |
| 165 bool isTextOrientationFallback = false, | 163 bool isTextOrientationFallback = false, |
| 166 bool subpixelAscentDescent = false); | 164 bool subpixelAscentDescent = false); |
| 167 | 165 |
| 168 SimpleFontData(PassRefPtr<CustomFontData> customData, | 166 SimpleFontData(PassRefPtr<CustomFontData> customData, |
| 169 float fontSize, | 167 float fontSize, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 254 |
| 257 m_glyphToWidthMap.setMetricsForGlyph(glyph, width); | 255 m_glyphToWidthMap.setMetricsForGlyph(glyph, width); |
| 258 return width; | 256 return width; |
| 259 #endif | 257 #endif |
| 260 } | 258 } |
| 261 | 259 |
| 262 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); | 260 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); |
| 263 | 261 |
| 264 } // namespace blink | 262 } // namespace blink |
| 265 #endif // SimpleFontData_h | 263 #endif // SimpleFontData_h |
| OLD | NEW |