Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: third_party/WebKit/Source/platform/fonts/SimpleFontData.h

Issue 2807913002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/fonts (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698