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

Side by Side Diff: Source/core/svg/SVGTransform.cpp

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGAngle.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 m_matrix.makeIdentity(); 126 m_matrix.makeIdentity();
127 m_matrix.skewY(angle); 127 m_matrix.skewY(angle);
128 } 128 }
129 129
130 const String& SVGTransform::transformTypePrefixForParsing(SVGTransformType type) 130 const String& SVGTransform::transformTypePrefixForParsing(SVGTransformType type)
131 { 131 {
132 switch (type) { 132 switch (type) {
133 case SVG_TRANSFORM_UNKNOWN: 133 case SVG_TRANSFORM_UNKNOWN:
134 return emptyString(); 134 return emptyString();
135 case SVG_TRANSFORM_MATRIX: { 135 case SVG_TRANSFORM_MATRIX: {
136 DEFINE_STATIC_LOCAL(String, matrixString, (ASCIILiteral("matrix("))); 136 DEFINE_STATIC_LOCAL(String, matrixString, ("matrix("));
137 return matrixString; 137 return matrixString;
138 } 138 }
139 case SVG_TRANSFORM_TRANSLATE: { 139 case SVG_TRANSFORM_TRANSLATE: {
140 DEFINE_STATIC_LOCAL(String, translateString, (ASCIILiteral("translate(") )); 140 DEFINE_STATIC_LOCAL(String, translateString, ("translate("));
141 return translateString; 141 return translateString;
142 } 142 }
143 case SVG_TRANSFORM_SCALE: { 143 case SVG_TRANSFORM_SCALE: {
144 DEFINE_STATIC_LOCAL(String, scaleString, (ASCIILiteral("scale("))); 144 DEFINE_STATIC_LOCAL(String, scaleString, ("scale("));
145 return scaleString; 145 return scaleString;
146 } 146 }
147 case SVG_TRANSFORM_ROTATE: { 147 case SVG_TRANSFORM_ROTATE: {
148 DEFINE_STATIC_LOCAL(String, rotateString, (ASCIILiteral("rotate("))); 148 DEFINE_STATIC_LOCAL(String, rotateString, ("rotate("));
149 return rotateString; 149 return rotateString;
150 } 150 }
151 case SVG_TRANSFORM_SKEWX: { 151 case SVG_TRANSFORM_SKEWX: {
152 DEFINE_STATIC_LOCAL(String, skewXString, (ASCIILiteral("skewX("))); 152 DEFINE_STATIC_LOCAL(String, skewXString, ("skewX("));
153 return skewXString; 153 return skewXString;
154 } 154 }
155 case SVG_TRANSFORM_SKEWY: { 155 case SVG_TRANSFORM_SKEWY: {
156 DEFINE_STATIC_LOCAL(String, skewYString, (ASCIILiteral("skewY("))); 156 DEFINE_STATIC_LOCAL(String, skewYString, ("skewY("));
157 return skewYString; 157 return skewYString;
158 } 158 }
159 } 159 }
160 160
161 ASSERT_NOT_REACHED(); 161 ASSERT_NOT_REACHED();
162 return emptyString(); 162 return emptyString();
163 } 163 }
164 164
165 String SVGTransform::valueAsString() const 165 String SVGTransform::valueAsString() const
166 { 166 {
(...skipping 25 matching lines...) Expand all
192 return prefix + String::number(m_angle) + ')'; 192 return prefix + String::number(m_angle) + ')';
193 case SVG_TRANSFORM_SKEWY: 193 case SVG_TRANSFORM_SKEWY:
194 return prefix + String::number(m_angle) + ')'; 194 return prefix + String::number(m_angle) + ')';
195 } 195 }
196 196
197 ASSERT_NOT_REACHED(); 197 ASSERT_NOT_REACHED();
198 return emptyString(); 198 return emptyString();
199 } 199 }
200 200
201 } // namespace WebCore 201 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAngle.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698