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

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

Issue 2738863002: Replace ASSERT with DCHECK in core/svg/ (Closed)
Patch Set: Split DCHECKS wherever possible Created 3 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) 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 } 194 }
195 break; 195 break;
196 } 196 }
197 case kSvgTransformSkewx: 197 case kSvgTransformSkewx:
198 arguments[argumentCount++] = m_angle; 198 arguments[argumentCount++] = m_angle;
199 break; 199 break;
200 case kSvgTransformSkewy: 200 case kSvgTransformSkewy:
201 arguments[argumentCount++] = m_angle; 201 arguments[argumentCount++] = m_angle;
202 break; 202 break;
203 } 203 }
204 ASSERT(argumentCount <= WTF_ARRAY_LENGTH(arguments)); 204 DCHECK_LE(argumentCount, WTF_ARRAY_LENGTH(arguments));
205 205
206 StringBuilder builder; 206 StringBuilder builder;
207 builder.append(transformTypePrefixForParsing(m_transformType)); 207 builder.append(transformTypePrefixForParsing(m_transformType));
208 208
209 for (size_t i = 0; i < argumentCount; ++i) { 209 for (size_t i = 0; i < argumentCount; ++i) {
210 if (i) 210 if (i)
211 builder.append(' '); 211 builder.append(' ');
212 builder.appendNumber(arguments[i]); 212 builder.appendNumber(arguments[i]);
213 } 213 }
214 builder.append(')'); 214 builder.append(')');
(...skipping 17 matching lines...) Expand all
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

Powered by Google App Engine
This is Rietveld 408576698