| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 FontDataVariant variant) const { | 88 FontDataVariant variant) const { |
| 89 switch (variant) { | 89 switch (variant) { |
| 90 case SmallCapsVariant: | 90 case SmallCapsVariant: |
| 91 return smallCapsFontData(description); | 91 return smallCapsFontData(description); |
| 92 case EmphasisMarkVariant: | 92 case EmphasisMarkVariant: |
| 93 return emphasisMarkFontData(description); | 93 return emphasisMarkFontData(description); |
| 94 case AutoVariant: | 94 case AutoVariant: |
| 95 case NormalVariant: | 95 case NormalVariant: |
| 96 break; | 96 break; |
| 97 } | 97 } |
| 98 ASSERT_NOT_REACHED(); | 98 NOTREACHED(); |
| 99 return const_cast<SimpleFontData*>(this); | 99 return const_cast<SimpleFontData*>(this); |
| 100 } | 100 } |
| 101 | 101 |
| 102 PassRefPtr<SimpleFontData> verticalRightOrientationFontData() const; | 102 PassRefPtr<SimpleFontData> verticalRightOrientationFontData() const; |
| 103 PassRefPtr<SimpleFontData> uprightOrientationFontData() const; | 103 PassRefPtr<SimpleFontData> uprightOrientationFontData() const; |
| 104 | 104 |
| 105 bool hasVerticalGlyphs() const { return m_hasVerticalGlyphs; } | 105 bool hasVerticalGlyphs() const { return m_hasVerticalGlyphs; } |
| 106 bool isTextOrientationFallback() const { return m_isTextOrientationFallback; } | 106 bool isTextOrientationFallback() const { return m_isTextOrientationFallback; } |
| 107 bool isTextOrientationFallbackOf(const SimpleFontData*) const; | 107 bool isTextOrientationFallbackOf(const SimpleFontData*) const; |
| 108 | 108 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 | 253 |
| 254 m_glyphToWidthMap.setMetricsForGlyph(glyph, width); | 254 m_glyphToWidthMap.setMetricsForGlyph(glyph, width); |
| 255 return width; | 255 return width; |
| 256 #endif | 256 #endif |
| 257 } | 257 } |
| 258 | 258 |
| 259 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); | 259 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); |
| 260 | 260 |
| 261 } // namespace blink | 261 } // namespace blink |
| 262 #endif // SimpleFontData_h | 262 #endif // SimpleFontData_h |
| OLD | NEW |