| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  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  | 
|  125     CustomFontData* customFontData() const { return m_customFontData.get(); } |  125     CustomFontData* customFontData() const { return m_customFontData.get(); } | 
|  126  |  126  | 
|  127     // Implemented by the platform. |  127     // Implemented by the platform. | 
|  128     virtual bool fillGlyphPage(GlyphPage* pageToFill, unsigned offset, unsigned 
     length, UChar* buffer, unsigned bufferLength) const; |  128     virtual bool fillGlyphPage(GlyphPage* pageToFill, unsigned offset, unsigned 
     length, UChar* buffer, unsigned bufferLength) const; | 
|  129  |  129  | 
 |  130     size_t glyphToBoundsMapMemorySize() | 
 |  131     { | 
 |  132         if (!m_glyphToBoundsMap) | 
 |  133             return 0; | 
 |  134         return m_glyphToBoundsMap->memoryUsageInBytes(); | 
 |  135     } | 
 |  136  | 
|  130 protected: |  137 protected: | 
|  131     SimpleFontData(const FontPlatformData&, PassRefPtr<CustomFontData> customDat
     a, bool isTextOrientationFallback = false); |  138     SimpleFontData(const FontPlatformData&, PassRefPtr<CustomFontData> customDat
     a, bool isTextOrientationFallback = false); | 
|  132  |  139  | 
|  133     SimpleFontData(PassRefPtr<CustomFontData> customData, float fontSize, bool s
     yntheticBold, bool syntheticItalic); |  140     SimpleFontData(PassRefPtr<CustomFontData> customData, float fontSize, bool s
     yntheticBold, bool syntheticItalic); | 
|  134  |  141  | 
|  135 private: |  142 private: | 
|  136     void platformInit(); |  143     void platformInit(); | 
|  137     void platformGlyphInit(); |  144     void platformGlyphInit(); | 
|  138  |  145  | 
|  139     PassRefPtr<SimpleFontData> createScaledFontData(const FontDescription&, floa
     t scaleFactor) const; |  146     PassRefPtr<SimpleFontData> createScaledFontData(const FontDescription&, floa
     t scaleFactor) const; | 
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  207     width = platformWidthForGlyph(glyph); |  214     width = platformWidthForGlyph(glyph); | 
|  208  |  215  | 
|  209     m_glyphToWidthMap.setMetricsForGlyph(glyph, width); |  216     m_glyphToWidthMap.setMetricsForGlyph(glyph, width); | 
|  210     return width; |  217     return width; | 
|  211 } |  218 } | 
|  212  |  219  | 
|  213 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); |  220 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); | 
|  214  |  221  | 
|  215 } // namespace blink |  222 } // namespace blink | 
|  216 #endif // SimpleFontData_h |  223 #endif // SimpleFontData_h | 
| OLD | NEW |