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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGPathParser.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) 2002, 2003 The Karbon Developers 2 * Copyright (C) 2002, 2003 The Karbon Developers
3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
4 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org>
5 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // On failure, emit a line segment to the target point. 145 // On failure, emit a line segment to the target point.
146 normSeg.command = PathSegLineToAbs; 146 normSeg.command = PathSegLineToAbs;
147 } else { 147 } else {
148 // decomposeArcToCubic() has already emitted the normalized 148 // decomposeArcToCubic() has already emitted the normalized
149 // segments, so set command to PathSegArcAbs, to skip any further 149 // segments, so set command to PathSegArcAbs, to skip any further
150 // emit. 150 // emit.
151 normSeg.command = PathSegArcAbs; 151 normSeg.command = PathSegArcAbs;
152 } 152 }
153 break; 153 break;
154 default: 154 default:
155 ASSERT_NOT_REACHED(); 155 NOTREACHED();
156 } 156 }
157 157
158 if (normSeg.command != PathSegArcAbs) 158 if (normSeg.command != PathSegArcAbs)
159 m_consumer->emitSegment(normSeg); 159 m_consumer->emitSegment(normSeg);
160 160
161 m_currentPoint = normSeg.targetPoint; 161 m_currentPoint = normSeg.targetPoint;
162 162
163 if (!isCubicCommand(segment.command) && !isQuadraticCommand(segment.command)) 163 if (!isCubicCommand(segment.command) && !isQuadraticCommand(segment.command))
164 m_controlPoint = m_currentPoint; 164 m_controlPoint = m_currentPoint;
165 165
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 cubicSegment.point1 = pointTransform.mapPoint(point1); 270 cubicSegment.point1 = pointTransform.mapPoint(point1);
271 cubicSegment.point2 = pointTransform.mapPoint(point2); 271 cubicSegment.point2 = pointTransform.mapPoint(point2);
272 cubicSegment.targetPoint = pointTransform.mapPoint(targetPoint); 272 cubicSegment.targetPoint = pointTransform.mapPoint(targetPoint);
273 273
274 m_consumer->emitSegment(cubicSegment); 274 m_consumer->emitSegment(cubicSegment);
275 } 275 }
276 return true; 276 return true;
277 } 277 }
278 278
279 } // namespace blink 279 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPathQuery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698