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

Side by Side Diff: Source/core/svg/SVGPathTraversalStateBuilder.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/SVGPathTraversalStateBuilder.h ('k') | no next file » | 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) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 15 matching lines...) Expand all
26 #include "core/svg/SVGPathTraversalStateBuilder.h" 26 #include "core/svg/SVGPathTraversalStateBuilder.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 SVGPathTraversalStateBuilder::SVGPathTraversalStateBuilder(PathTraversalState& t raversalState, float desiredLength) 30 SVGPathTraversalStateBuilder::SVGPathTraversalStateBuilder(PathTraversalState& t raversalState, float desiredLength)
31 : m_traversalState(traversalState) 31 : m_traversalState(traversalState)
32 { 32 {
33 m_traversalState.m_desiredLength = desiredLength; 33 m_traversalState.m_desiredLength = desiredLength;
34 } 34 }
35 35
36 void SVGPathTraversalStateBuilder::moveTo(const FloatPoint& targetPoint, bool, P athCoordinateMode) 36 void SVGPathTraversalStateBuilder::moveTo(const FloatPoint& targetPoint, PathCoo rdinateMode)
37 { 37 {
38 m_traversalState.m_totalLength += m_traversalState.moveTo(targetPoint); 38 m_traversalState.m_totalLength += m_traversalState.moveTo(targetPoint);
39 } 39 }
40 40
41 void SVGPathTraversalStateBuilder::lineTo(const FloatPoint& targetPoint, PathCoo rdinateMode) 41 void SVGPathTraversalStateBuilder::lineTo(const FloatPoint& targetPoint, PathCoo rdinateMode)
42 { 42 {
43 m_traversalState.m_totalLength += m_traversalState.lineTo(targetPoint); 43 m_traversalState.m_totalLength += m_traversalState.lineTo(targetPoint);
44 } 44 }
45 45
46 void SVGPathTraversalStateBuilder::curveToCubic(const FloatPoint& point1, const FloatPoint& point2, const FloatPoint& targetPoint, PathCoordinateMode) 46 void SVGPathTraversalStateBuilder::curveToCubic(const FloatPoint& point1, const FloatPoint& point2, const FloatPoint& targetPoint, PathCoordinateMode)
(...skipping 26 matching lines...) Expand all
73 { 73 {
74 return m_traversalState.m_totalLength; 74 return m_traversalState.m_totalLength;
75 } 75 }
76 76
77 FloatPoint SVGPathTraversalStateBuilder::currentPoint() 77 FloatPoint SVGPathTraversalStateBuilder::currentPoint()
78 { 78 {
79 return m_traversalState.m_current; 79 return m_traversalState.m_current;
80 } 80 }
81 81
82 } 82 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathTraversalStateBuilder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698