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

Side by Side Diff: third_party/WebKit/Source/core/animation/SVGPathSegInterpolationFunctions.cpp

Issue 2109333002: Replace ASSERT_NOT_REACHED with NOTREACHED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/animation/SVGPathSegInterpolationFunctions.h" 5 #include "core/animation/SVGPathSegInterpolationFunctions.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 namespace blink { 9 namespace blink {
10 10
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 case PathSegLineToVerticalAbs: 256 case PathSegLineToVerticalAbs:
257 case PathSegLineToVerticalRel: 257 case PathSegLineToVerticalRel:
258 return consumeLinetoVertical(segment, coordinates); 258 return consumeLinetoVertical(segment, coordinates);
259 259
260 case PathSegCurveToCubicSmoothAbs: 260 case PathSegCurveToCubicSmoothAbs:
261 case PathSegCurveToCubicSmoothRel: 261 case PathSegCurveToCubicSmoothRel:
262 return consumeCurvetoCubicSmooth(segment, coordinates); 262 return consumeCurvetoCubicSmooth(segment, coordinates);
263 263
264 case PathSegUnknown: 264 case PathSegUnknown:
265 default: 265 default:
266 ASSERT_NOT_REACHED(); 266 NOTREACHED();
267 return nullptr; 267 return nullptr;
268 } 268 }
269 } 269 }
270 270
271 PathSegmentData SVGPathSegInterpolationFunctions::consumeInterpolablePathSeg(con st InterpolableValue& value, SVGPathSegType segType, PathCoordinates& coordinate s) 271 PathSegmentData SVGPathSegInterpolationFunctions::consumeInterpolablePathSeg(con st InterpolableValue& value, SVGPathSegType segType, PathCoordinates& coordinate s)
272 { 272 {
273 switch (segType) { 273 switch (segType) {
274 case PathSegClosePath: 274 case PathSegClosePath:
275 return consumeInterpolableClosePath(value, segType, coordinates); 275 return consumeInterpolableClosePath(value, segType, coordinates);
276 276
(...skipping 24 matching lines...) Expand all
301 case PathSegLineToVerticalAbs: 301 case PathSegLineToVerticalAbs:
302 case PathSegLineToVerticalRel: 302 case PathSegLineToVerticalRel:
303 return consumeInterpolableLinetoVertical(value, segType, coordinates); 303 return consumeInterpolableLinetoVertical(value, segType, coordinates);
304 304
305 case PathSegCurveToCubicSmoothAbs: 305 case PathSegCurveToCubicSmoothAbs:
306 case PathSegCurveToCubicSmoothRel: 306 case PathSegCurveToCubicSmoothRel:
307 return consumeInterpolableCurvetoCubicSmooth(value, segType, coordinates ); 307 return consumeInterpolableCurvetoCubicSmooth(value, segType, coordinates );
308 308
309 case PathSegUnknown: 309 case PathSegUnknown:
310 default: 310 default:
311 ASSERT_NOT_REACHED(); 311 NOTREACHED();
312 return PathSegmentData(); 312 return PathSegmentData();
313 } 313 }
314 } 314 }
315 315
316 } // namespace blink 316 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698