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

Side by Side Diff: Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp

Issue 207783002: Omit "int" when using "unsigned" modifier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 } 153 }
154 154
155 float SVGTextLayoutEngineBaseline::calculateGlyphOrientationAngle(bool isVertica lText, const SVGRenderStyle* style, const UChar& character) const 155 float SVGTextLayoutEngineBaseline::calculateGlyphOrientationAngle(bool isVertica lText, const SVGRenderStyle* style, const UChar& character) const
156 { 156 {
157 ASSERT(style); 157 ASSERT(style);
158 158
159 switch (isVerticalText ? style->glyphOrientationVertical() : style->glyphOri entationHorizontal()) { 159 switch (isVerticalText ? style->glyphOrientationVertical() : style->glyphOri entationHorizontal()) {
160 case GO_AUTO: { 160 case GO_AUTO: {
161 // Spec: Fullwidth ideographic and fullwidth Latin text will be set with a glyph-orientation of 0-degrees. 161 // Spec: Fullwidth ideographic and fullwidth Latin text will be set with a glyph-orientation of 0-degrees.
162 // Text which is not fullwidth will be set with a glyph-orientation of 9 0-degrees. 162 // Text which is not fullwidth will be set with a glyph-orientation of 9 0-degrees.
163 unsigned int unicodeRange = findCharUnicodeRange(character); 163 unsigned unicodeRange = findCharUnicodeRange(character);
164 if (unicodeRange == cRangeSetLatin || unicodeRange == cRangeArabic) 164 if (unicodeRange == cRangeSetLatin || unicodeRange == cRangeArabic)
165 return 90; 165 return 90;
166 166
167 return 0; 167 return 0;
168 } 168 }
169 case GO_90DEG: 169 case GO_90DEG:
170 return 90; 170 return 90;
171 case GO_180DEG: 171 case GO_180DEG:
172 return 180; 172 return 180;
173 case GO_270DEG: 173 case GO_270DEG:
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 xOrientationShift = metrics.width(); 227 xOrientationShift = metrics.width();
228 228
229 // Horizontal advance calculation. 229 // Horizontal advance calculation.
230 if (angle && !orientationIsMultiplyOf180Degrees) 230 if (angle && !orientationIsMultiplyOf180Degrees)
231 return metrics.height(); 231 return metrics.height();
232 232
233 return metrics.width(); 233 return metrics.width();
234 } 234 }
235 235
236 } 236 }
OLDNEW
« no previous file with comments | « Source/core/rendering/style/StyleDeprecatedFlexibleBoxData.cpp ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698