-
zandobersek@gmail.com authored
https://bugs.webkit.org/show_bug.cgi?id=123467 Reviewed by Anders Carlsson. Manage SVGPathByteStream objects through std::unique_ptr. Constructors for the class are made public so std::make_unique can be used with the class. * svg/SVGAnimatedPath.cpp: (WebCore::SVGAnimatedPathAnimator::constructFromString): (WebCore::SVGAnimatedPathAnimator::startAnimValAnimation): (WebCore::SVGAnimatedPathAnimator::calculateAnimatedValue): * svg/SVGAnimatedType.cpp: (WebCore::SVGAnimatedType::createPath): * svg/SVGAnimatedType.h: * svg/SVGPathByteStream.h: (WebCore::SVGPathByteStream::SVGPathByteStream): Takes a const Data object that's then copied. (WebCore::SVGPathByteStream::copy): Made const. * svg/SVGPathByteStreamBuilder.cpp: Remove an unnecessary include. * svg/SVGPathByteStreamBuilder.h: Ditto. * svg/SVGPathElement.cpp: (WebCore::SVGPathElement::SVGPathElement): * svg/SVGPathElement.h: * svg/SVGPathUtilities.cpp: (WebCore::appendSVGPathByteStreamFromSVGPathSeg): (WebCore::addToSVGPathByteStream): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1ebce45b