Home
last modified time | relevance | path

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

/external/webkit/Source/WebCore/platform/graphics/
DPath.cpp46 PathTraversalState& traversalState = *static_cast<PathTraversalState*>(info); in pathLengthApplierFunction() local
47 if (traversalState.m_success) in pathLengthApplierFunction()
49 traversalState.m_previous = traversalState.m_current; in pathLengthApplierFunction()
54 segmentLength = traversalState.moveTo(points[0]); in pathLengthApplierFunction()
57 segmentLength = traversalState.lineTo(points[0]); in pathLengthApplierFunction()
60 segmentLength = traversalState.quadraticBezierTo(points[0], points[1]); in pathLengthApplierFunction()
63 segmentLength = traversalState.cubicBezierTo(points[0], points[1], points[2]); in pathLengthApplierFunction()
66 segmentLength = traversalState.closeSubpath(); in pathLengthApplierFunction()
69 traversalState.m_totalLength += segmentLength; in pathLengthApplierFunction()
70 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/Source/WebCore/svg/
DSVGPathTraversalStateBuilder.h36 …void setCurrentTraversalState(PathTraversalState* traversalState) { m_traversalState = traversalSt… in setCurrentTraversalState() argument
DSVGPathParserFactory.cpp81 …lStateBuilder* globalSVGPathTraversalStateBuilder(PathTraversalState& traversalState, float length) in globalSVGPathTraversalStateBuilder() argument
87 s_builder->setCurrentTraversalState(&traversalState); in globalSVGPathTraversalStateBuilder()
259 PathTraversalState traversalState(PathTraversalState::TraversalSegmentAtLength); in getSVGPathSegAtLengthFromSVGPathByteStream() local
260 …SVGPathTraversalStateBuilder* builder = globalSVGPathTraversalStateBuilder(traversalState, length); in getSVGPathSegAtLengthFromSVGPathByteStream()