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

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

Issue 2748223002: Replace ASSERT_NOT_REACHED with NOTREACHED in core/svg/ (Closed)
Patch Set: 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) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 case PathSegArcAbs: 236 case PathSegArcAbs:
237 segment.arcRadii().setX(parseNumberWithError()); 237 segment.arcRadii().setX(parseNumberWithError());
238 segment.arcRadii().setY(parseNumberWithError()); 238 segment.arcRadii().setY(parseNumberWithError());
239 segment.setArcAngle(parseNumberWithError()); 239 segment.setArcAngle(parseNumberWithError());
240 segment.arcLarge = parseArcFlagWithError(); 240 segment.arcLarge = parseArcFlagWithError();
241 segment.arcSweep = parseArcFlagWithError(); 241 segment.arcSweep = parseArcFlagWithError();
242 segment.targetPoint.setX(parseNumberWithError()); 242 segment.targetPoint.setX(parseNumberWithError());
243 segment.targetPoint.setY(parseNumberWithError()); 243 segment.targetPoint.setY(parseNumberWithError());
244 break; 244 break;
245 case PathSegUnknown: 245 case PathSegUnknown:
246 ASSERT_NOT_REACHED(); 246 NOTREACHED();
247 } 247 }
248 248
249 if (UNLIKELY(m_error.status() != SVGParseStatus::NoError)) 249 if (UNLIKELY(m_error.status() != SVGParseStatus::NoError))
250 segment.command = PathSegUnknown; 250 segment.command = PathSegUnknown;
251 return segment; 251 return segment;
252 } 252 }
253 253
254 } // namespace blink 254 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698