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

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

Issue 2668903003: Replace WTF::emptyString{16Bit}() with a static global (Closed)
Patch Set: Replace WTF::emptyString{16Bit}() with a static global Created 3 years, 10 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) 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 return ""; 146 return "";
147 } 147 }
148 148
149 } // namespace 149 } // namespace
150 150
151 String SVGTransform::valueAsString() const { 151 String SVGTransform::valueAsString() const {
152 double arguments[6]; 152 double arguments[6];
153 size_t argumentCount = 0; 153 size_t argumentCount = 0;
154 switch (m_transformType) { 154 switch (m_transformType) {
155 case kSvgTransformUnknown: 155 case kSvgTransformUnknown:
156 return emptyString(); 156 return emptyString;
157 case kSvgTransformMatrix: { 157 case kSvgTransformMatrix: {
158 arguments[argumentCount++] = m_matrix.a(); 158 arguments[argumentCount++] = m_matrix.a();
159 arguments[argumentCount++] = m_matrix.b(); 159 arguments[argumentCount++] = m_matrix.b();
160 arguments[argumentCount++] = m_matrix.c(); 160 arguments[argumentCount++] = m_matrix.c();
161 arguments[argumentCount++] = m_matrix.d(); 161 arguments[argumentCount++] = m_matrix.d();
162 arguments[argumentCount++] = m_matrix.e(); 162 arguments[argumentCount++] = m_matrix.e();
163 arguments[argumentCount++] = m_matrix.f(); 163 arguments[argumentCount++] = m_matrix.f();
164 break; 164 break;
165 } 165 }
166 case kSvgTransformTranslate: { 166 case kSvgTransformTranslate: {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 232 }
233 233
234 float SVGTransform::calculateDistance(SVGPropertyBase*, SVGElement*) { 234 float SVGTransform::calculateDistance(SVGPropertyBase*, SVGElement*) {
235 // SVGTransform is not animated by itself. 235 // SVGTransform is not animated by itself.
236 ASSERT_NOT_REACHED(); 236 ASSERT_NOT_REACHED();
237 237
238 return -1; 238 return -1;
239 } 239 }
240 240
241 } // namespace blink 241 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp ('k') | third_party/WebKit/Source/core/testing/DictionaryTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698