| 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 kSmallCapsVariant: | 90 case kSmallCapsVariant: |
| 91 return SmallCapsFontData(description); | 91 return SmallCapsFontData(description); |
| 92 case kEmphasisMarkVariant: | 92 case kEmphasisMarkVariant: |
| 93 return EmphasisMarkFontData(description); | 93 return EmphasisMarkFontData(description); |
| 94 case kAutoVariant: | 94 case kAutoVariant: |
| 95 case kNormalVariant: | 95 case kNormalVariant: |
| 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 has_vertical_glyphs_; } | 105 bool HasVerticalGlyphs() const { return has_vertical_glyphs_; } |
| 106 bool IsTextOrientationFallback() const { | 106 bool IsTextOrientationFallback() const { |
| 107 return is_text_orientation_fallback_; | 107 return is_text_orientation_fallback_; |
| 108 } | 108 } |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 259 |
| 260 glyph_to_width_map_.SetMetricsForGlyph(glyph, width); | 260 glyph_to_width_map_.SetMetricsForGlyph(glyph, width); |
| 261 return width; | 261 return width; |
| 262 #endif | 262 #endif |
| 263 } | 263 } |
| 264 | 264 |
| 265 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); | 265 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); |
| 266 | 266 |
| 267 } // namespace blink | 267 } // namespace blink |
| 268 #endif // SimpleFontData_h | 268 #endif // SimpleFontData_h |
| OLD | NEW |