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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGPathParser.h

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) 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 } // namespace SVGPathParser 49 } // namespace SVGPathParser
50 50
51 class SVGPathNormalizer { 51 class SVGPathNormalizer {
52 STACK_ALLOCATED(); 52 STACK_ALLOCATED();
53 53
54 public: 54 public:
55 SVGPathNormalizer(SVGPathConsumer* consumer) 55 SVGPathNormalizer(SVGPathConsumer* consumer)
56 : m_consumer(consumer), m_lastCommand(PathSegUnknown) { 56 : m_consumer(consumer), m_lastCommand(PathSegUnknown) {
57 ASSERT(m_consumer); 57 DCHECK(m_consumer);
58 } 58 }
59 59
60 void emitSegment(const PathSegmentData&); 60 void emitSegment(const PathSegmentData&);
61 61
62 private: 62 private:
63 bool decomposeArcToCubic(const FloatPoint& currentPoint, 63 bool decomposeArcToCubic(const FloatPoint& currentPoint,
64 const PathSegmentData&); 64 const PathSegmentData&);
65 65
66 SVGPathConsumer* m_consumer; 66 SVGPathConsumer* m_consumer;
67 FloatPoint m_controlPoint; 67 FloatPoint m_controlPoint;
68 FloatPoint m_currentPoint; 68 FloatPoint m_currentPoint;
69 FloatPoint m_subPathPoint; 69 FloatPoint m_subPathPoint;
70 SVGPathSegType m_lastCommand; 70 SVGPathSegType m_lastCommand;
71 }; 71 };
72 72
73 } // namespace blink 73 } // namespace blink
74 74
75 #endif // SVGPathParser_h 75 #endif // SVGPathParser_h
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