| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 Glyph spaceGlyph() const { return m_spaceGlyph; } | 105 Glyph spaceGlyph() const { return m_spaceGlyph; } |
| 106 void setSpaceGlyph(Glyph spaceGlyph) { m_spaceGlyph = spaceGlyph; } | 106 void setSpaceGlyph(Glyph spaceGlyph) { m_spaceGlyph = spaceGlyph; } |
| 107 Glyph zeroGlyph() const { return m_zeroGlyph; } | 107 Glyph zeroGlyph() const { return m_zeroGlyph; } |
| 108 void setZeroGlyph(Glyph zeroGlyph) { m_zeroGlyph = zeroGlyph; } | 108 void setZeroGlyph(Glyph zeroGlyph) { m_zeroGlyph = zeroGlyph; } |
| 109 | 109 |
| 110 const SimpleFontData* fontDataForCharacter(UChar32) const override; | 110 const SimpleFontData* fontDataForCharacter(UChar32) const override; |
| 111 | 111 |
| 112 Glyph glyphForCharacter(UChar32) const; | 112 Glyph glyphForCharacter(UChar32) const; |
| 113 | 113 |
| 114 bool isCustomFont() const override { return m_customFontData; } | 114 bool isCustomFont() const override { return m_customFontData.get(); } |
| 115 bool isLoading() const override { return m_customFontData ? m_customFontData
->isLoading() : false; } | 115 bool isLoading() const override { return m_customFontData ? m_customFontData
->isLoading() : false; } |
| 116 bool isLoadingFallback() const override { return m_customFontData ? m_custom
FontData->isLoadingFallback() : false; } | 116 bool isLoadingFallback() const override { return m_customFontData ? m_custom
FontData->isLoadingFallback() : false; } |
| 117 bool isSegmented() const override; | 117 bool isSegmented() const override; |
| 118 bool shouldSkipDrawing() const override { return m_customFontData && m_custo
mFontData->shouldSkipDrawing(); } | 118 bool shouldSkipDrawing() const override { return m_customFontData && m_custo
mFontData->shouldSkipDrawing(); } |
| 119 | 119 |
| 120 const GlyphData& missingGlyphData() const { return m_missingGlyphData; } | 120 const GlyphData& missingGlyphData() const { return m_missingGlyphData; } |
| 121 void setMissingGlyphData(const GlyphData& glyphData) { m_missingGlyphData =
glyphData; } | 121 void setMissingGlyphData(const GlyphData& glyphData) { m_missingGlyphData =
glyphData; } |
| 122 | 122 |
| 123 bool canRenderCombiningCharacterSequence(const UChar*, size_t) const; | 123 bool canRenderCombiningCharacterSequence(const UChar*, size_t) const; |
| 124 | 124 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 width = platformWidthForGlyph(glyph); | 207 width = platformWidthForGlyph(glyph); |
| 208 | 208 |
| 209 m_glyphToWidthMap.setMetricsForGlyph(glyph, width); | 209 m_glyphToWidthMap.setMetricsForGlyph(glyph, width); |
| 210 return width; | 210 return width; |
| 211 } | 211 } |
| 212 | 212 |
| 213 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); | 213 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); |
| 214 | 214 |
| 215 } // namespace blink | 215 } // namespace blink |
| 216 #endif // SimpleFontData_h | 216 #endif // SimpleFontData_h |
| OLD | NEW |