| Index: third_party/WebKit/Source/core/svg/SVGPath.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGPath.cpp b/third_party/WebKit/Source/core/svg/SVGPath.cpp
|
| index 37547edf1aca8fc430b5258658ad1e573b2271e4..71af5a759c43d19131933cf89576d880890ee2d7 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGPath.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGPath.cpp
|
| @@ -72,7 +72,7 @@ SVGPath::SVGPath()
|
| {
|
| }
|
|
|
| -SVGPath::SVGPath(PassRefPtrWillBeRawPtr<CSSPathValue> pathValue)
|
| +SVGPath::SVGPath(RawPtr<CSSPathValue> pathValue)
|
| : SVGPropertyBase(classType())
|
| , m_pathValue(pathValue)
|
| {
|
| @@ -88,7 +88,7 @@ String SVGPath::valueAsString() const
|
| }
|
|
|
|
|
| -PassRefPtrWillBeRawPtr<SVGPath> SVGPath::clone() const
|
| +RawPtr<SVGPath> SVGPath::clone() const
|
| {
|
| return SVGPath::create(m_pathValue);
|
| }
|
| @@ -101,12 +101,12 @@ SVGParsingError SVGPath::setValueAsString(const String& string)
|
| return parseStatus;
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGPath::cloneForAnimation(const String& value) const
|
| +RawPtr<SVGPropertyBase> SVGPath::cloneForAnimation(const String& value) const
|
| {
|
| return SVGPath::create(CSSPathValue::create(value));
|
| }
|
|
|
| -void SVGPath::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
|
| +void SVGPath::add(RawPtr<SVGPropertyBase> other, SVGElement*)
|
| {
|
| const SVGPathByteStream& otherPathByteStream = toSVGPath(other)->byteStream();
|
| if (byteStream().size() != otherPathByteStream.size()
|
| @@ -117,19 +117,19 @@ void SVGPath::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
|
| m_pathValue = CSSPathValue::create(addPathByteStreams(byteStream(), otherPathByteStream));
|
| }
|
|
|
| -void SVGPath::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> fromValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*)
|
| +void SVGPath::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, RawPtr<SVGPropertyBase> fromValue, RawPtr<SVGPropertyBase> toValue, RawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*)
|
| {
|
| ASSERT(animationElement);
|
| bool isToAnimation = animationElement->animationMode() == ToAnimation;
|
|
|
| - const RefPtrWillBeRawPtr<SVGPath> to = toSVGPath(toValue);
|
| + const RawPtr<SVGPath> to = toSVGPath(toValue);
|
| const SVGPathByteStream& toStream = to->byteStream();
|
|
|
| // If no 'to' value is given, nothing to animate.
|
| if (!toStream.size())
|
| return;
|
|
|
| - const RefPtrWillBeRawPtr<SVGPath> from = toSVGPath(fromValue);
|
| + const RawPtr<SVGPath> from = toSVGPath(fromValue);
|
| const SVGPathByteStream* fromStream = &from->byteStream();
|
|
|
| RefPtr<SVGPathByteStream> copy;
|
| @@ -164,7 +164,7 @@ void SVGPath::calculateAnimatedValue(SVGAnimationElement* animationElement, floa
|
| m_pathValue = CSSPathValue::create(newStream.release());
|
| }
|
|
|
| -float SVGPath::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGElement*)
|
| +float SVGPath::calculateDistance(RawPtr<SVGPropertyBase> to, SVGElement*)
|
| {
|
| // FIXME: Support paced animations.
|
| return -1;
|
|
|