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

Side by Side Diff: Source/core/svg/SVGPathSegListBuilder.cpp

Issue 1016023002: Move 'closePath' handling to the consumers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: closePath() Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGPathSegListBuilder.h ('k') | Source/core/svg/SVGPathStringBuilder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 { 54 {
55 } 55 }
56 56
57 DEFINE_TRACE(SVGPathSegListBuilder) 57 DEFINE_TRACE(SVGPathSegListBuilder)
58 { 58 {
59 visitor->trace(m_pathElement); 59 visitor->trace(m_pathElement);
60 visitor->trace(m_pathSegList); 60 visitor->trace(m_pathSegList);
61 SVGPathConsumer::trace(visitor); 61 SVGPathConsumer::trace(visitor);
62 } 62 }
63 63
64 void SVGPathSegListBuilder::moveTo(const FloatPoint& targetPoint, bool, PathCoor dinateMode mode) 64 void SVGPathSegListBuilder::moveTo(const FloatPoint& targetPoint, PathCoordinate Mode mode)
65 { 65 {
66 ASSERT(m_pathElement); 66 ASSERT(m_pathElement);
67 ASSERT(m_pathSegList); 67 ASSERT(m_pathSegList);
68 if (mode == AbsoluteCoordinates) 68 if (mode == AbsoluteCoordinates)
69 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegMovetoAbs::create(m _pathElement, targetPoint.x(), targetPoint.y())); 69 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegMovetoAbs::create(m _pathElement, targetPoint.x(), targetPoint.y()));
70 else 70 else
71 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegMovetoRel::create(m _pathElement, targetPoint.x(), targetPoint.y())); 71 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegMovetoRel::create(m _pathElement, targetPoint.x(), targetPoint.y()));
72 } 72 }
73 73
74 void SVGPathSegListBuilder::lineTo(const FloatPoint& targetPoint, PathCoordinate Mode mode) 74 void SVGPathSegListBuilder::lineTo(const FloatPoint& targetPoint, PathCoordinate Mode mode)
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 152 }
153 153
154 void SVGPathSegListBuilder::closePath() 154 void SVGPathSegListBuilder::closePath()
155 { 155 {
156 ASSERT(m_pathElement); 156 ASSERT(m_pathElement);
157 ASSERT(m_pathSegList); 157 ASSERT(m_pathSegList);
158 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegClosePath::create(m_pat hElement)); 158 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegClosePath::create(m_pat hElement));
159 } 159 }
160 160
161 } 161 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathSegListBuilder.h ('k') | Source/core/svg/SVGPathStringBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698