| Index: third_party/WebKit/Source/core/svg/SVGLengthList.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGLengthList.cpp b/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
|
| index df8cec0727f62d767482de5aef3f833668ffcda1..f1aa7c984ad7814ad268c489e5a5537049643dfb 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
|
| @@ -35,16 +35,16 @@ SVGLengthList::~SVGLengthList()
|
| {
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<SVGLengthList> SVGLengthList::clone()
|
| +RawPtr<SVGLengthList> SVGLengthList::clone()
|
| {
|
| - RefPtrWillBeRawPtr<SVGLengthList> ret = SVGLengthList::create(m_mode);
|
| + RawPtr<SVGLengthList> ret = SVGLengthList::create(m_mode);
|
| ret->deepCopy(this);
|
| return ret.release();
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGLengthList::cloneForAnimation(const String& value) const
|
| +RawPtr<SVGPropertyBase> SVGLengthList::cloneForAnimation(const String& value) const
|
| {
|
| - RefPtrWillBeRawPtr<SVGLengthList> ret = SVGLengthList::create(m_mode);
|
| + RawPtr<SVGLengthList> ret = SVGLengthList::create(m_mode);
|
| ret->setValueAsString(value);
|
| return ret.release();
|
| }
|
| @@ -82,7 +82,7 @@ SVGParsingError SVGLengthList::parseInternal(const CharType*& ptr, const CharTyp
|
| if (valueString.isEmpty())
|
| break;
|
|
|
| - RefPtrWillBeRawPtr<SVGLength> length = SVGLength::create(m_mode);
|
| + RawPtr<SVGLength> length = SVGLength::create(m_mode);
|
| SVGParsingError lengthParseStatus = length->setValueAsString(valueString);
|
| if (lengthParseStatus != SVGParseStatus::NoError)
|
| return lengthParseStatus.offsetWith(start - listStart);
|
| @@ -109,9 +109,9 @@ SVGParsingError SVGLengthList::setValueAsString(const String& value)
|
| return parseInternal(ptr, end);
|
| }
|
|
|
| -void SVGLengthList::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement* contextElement)
|
| +void SVGLengthList::add(RawPtr<SVGPropertyBase> other, SVGElement* contextElement)
|
| {
|
| - RefPtrWillBeRawPtr<SVGLengthList> otherList = toSVGLengthList(other);
|
| + RawPtr<SVGLengthList> otherList = toSVGLengthList(other);
|
|
|
| if (length() != otherList->length())
|
| return;
|
| @@ -121,16 +121,16 @@ void SVGLengthList::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElemen
|
| at(i)->setValue(at(i)->value(lengthContext) + otherList->at(i)->value(lengthContext), lengthContext);
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<SVGLength> SVGLengthList::createPaddingItem() const
|
| +RawPtr<SVGLength> SVGLengthList::createPaddingItem() const
|
| {
|
| return SVGLength::create(m_mode);
|
| }
|
|
|
| -void SVGLengthList::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> fromValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement* contextElement)
|
| +void SVGLengthList::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, RawPtr<SVGPropertyBase> fromValue, RawPtr<SVGPropertyBase> toValue, RawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement* contextElement)
|
| {
|
| - RefPtrWillBeRawPtr<SVGLengthList> fromList = toSVGLengthList(fromValue);
|
| - RefPtrWillBeRawPtr<SVGLengthList> toList = toSVGLengthList(toValue);
|
| - RefPtrWillBeRawPtr<SVGLengthList> toAtEndOfDurationList = toSVGLengthList(toAtEndOfDurationValue);
|
| + RawPtr<SVGLengthList> fromList = toSVGLengthList(fromValue);
|
| + RawPtr<SVGLengthList> toList = toSVGLengthList(toValue);
|
| + RawPtr<SVGLengthList> toAtEndOfDurationList = toSVGLengthList(toAtEndOfDurationValue);
|
|
|
| SVGLengthContext lengthContext(contextElement);
|
| ASSERT(m_mode == SVGLength::lengthModeForAnimatedLengthAttribute(animationElement->attributeName()));
|
| @@ -160,7 +160,7 @@ void SVGLengthList::calculateAnimatedValue(SVGAnimationElement* animationElement
|
| }
|
| }
|
|
|
| -float SVGLengthList::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGElement*)
|
| +float SVGLengthList::calculateDistance(RawPtr<SVGPropertyBase> to, SVGElement*)
|
| {
|
| // FIXME: Distance calculation is not possible for SVGLengthList right now. We need the distance for every single value.
|
| return -1;
|
|
|