SVGPath object "mutability" cleanup
Move addToSVGPathByteStream to SVGPath.cpp (the only place using it), rename it to addPathByteStreams. Move the "regular" blending out into a helper(blendPathByteStreams), and eliminate the redundant copy. Make the functions more "functional" (return the result.) Add a (private) setter for byte-stream data and use that to ensure invalidation of the cached path. Also add an SVGPath::create(...) accepting a SVGPathByteStream and use that in PathSVGInterpolation. Inline mutableByteStream into the remaining user. Review URL: https://codereview.chromium.org/1460253002 Cr-Commit-Position: refs/heads/master@{#361128}
Showing
Please register or sign in to comment