Home
last modified time | relevance | path

Searched refs:traversalState (Results 1 – 3 of 3) sorted by relevance

/external/webkit/WebCore/platform/graphics/
DPath.cpp44 PathTraversalState& traversalState = *static_cast<PathTraversalState*>(info); in pathLengthApplierFunction() local
45 if (traversalState.m_success) in pathLengthApplierFunction()
47 traversalState.m_previous = traversalState.m_current; in pathLengthApplierFunction()
52 segmentLength = traversalState.moveTo(points[0]); in pathLengthApplierFunction()
55 segmentLength = traversalState.lineTo(points[0]); in pathLengthApplierFunction()
58 segmentLength = traversalState.quadraticBezierTo(points[0], points[1]); in pathLengthApplierFunction()
61 segmentLength = traversalState.cubicBezierTo(points[0], points[1], points[2]); in pathLengthApplierFunction()
64 segmentLength = traversalState.closeSubpath(); in pathLengthApplierFunction()
67 traversalState.m_totalLength += segmentLength; in pathLengthApplierFunction()
68 if ((traversalState.m_action == PathTraversalState::TraversalPointAtLength || in pathLengthApplierFunction()
[all …]
DPathTraversalState.cpp120 static float curveLength(PathTraversalState& traversalState, CurveType curve) in curveLength() argument
135 if (traversalState.m_action == PathTraversalState::TraversalPointAtLength in curveLength()
136 || traversalState.m_action == PathTraversalState::TraversalNormalAngleAtLength) { in curveLength()
137 traversalState.m_previous = curve.start; in curveLength()
138 traversalState.m_current = curve.end; in curveLength()
139 if (traversalState.m_totalLength + totalLength > traversalState.m_desiredLength) in curveLength()
/external/webkit/WebCore/svg/
DSVGPathSegList.cpp59 PathTraversalState traversalState(PathTraversalState::TraversalSegmentAtLength); in getPathSegAtLength() local
69 segmentLength = traversalState.moveTo(FloatPoint(moveTo->x(), moveTo->y())); in getPathSegAtLength()
75 segmentLength = traversalState.lineTo(FloatPoint(lineTo->x(), lineTo->y())); in getPathSegAtLength()
81 segmentLength = traversalState.cubicBezierTo(FloatPoint(curveTo->x1(), curveTo->y1()), in getPathSegAtLength()
87 segmentLength = traversalState.closeSubpath(); in getPathSegAtLength()
93 traversalState.m_totalLength += segmentLength; in getPathSegAtLength()
94 if ((traversalState.m_action == PathTraversalState::TraversalSegmentAtLength) in getPathSegAtLength()
95 && (traversalState.m_totalLength > traversalState.m_desiredLength)) { in getPathSegAtLength()
96 return traversalState.m_segmentIndex; in getPathSegAtLength()
98 traversalState.m_segmentIndex++; in getPathSegAtLength()