OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |