| Index: third_party/WebKit/Source/core/svg/SVGInteger.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGInteger.cpp b/third_party/WebKit/Source/core/svg/SVGInteger.cpp
|
| index 4586c976779ebb67dc39a958b6390fbb871b2b7b..8f07eae2fe8cc7e738af7fac91929907a8fb5521 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGInteger.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGInteger.cpp
|
| @@ -40,7 +40,7 @@ SVGInteger::SVGInteger(int value)
|
| {
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<SVGInteger> SVGInteger::clone() const
|
| +RawPtr<SVGInteger> SVGInteger::clone() const
|
| {
|
| return create(m_value);
|
| }
|
| @@ -63,25 +63,25 @@ SVGParsingError SVGInteger::setValueAsString(const String& string)
|
| return valid ? SVGParseStatus::NoError : SVGParseStatus::ExpectedInteger;
|
| }
|
|
|
| -void SVGInteger::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
|
| +void SVGInteger::add(RawPtr<SVGPropertyBase> other, SVGElement*)
|
| {
|
| setValue(m_value + toSVGInteger(other)->value());
|
| }
|
|
|
| -void SVGInteger::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> from, PassRefPtrWillBeRawPtr<SVGPropertyBase> to, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDuration, SVGElement*)
|
| +void SVGInteger::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, RawPtr<SVGPropertyBase> from, RawPtr<SVGPropertyBase> to, RawPtr<SVGPropertyBase> toAtEndOfDuration, SVGElement*)
|
| {
|
| ASSERT(animationElement);
|
|
|
| - RefPtrWillBeRawPtr<SVGInteger> fromInteger = toSVGInteger(from);
|
| - RefPtrWillBeRawPtr<SVGInteger> toInteger = toSVGInteger(to);
|
| - RefPtrWillBeRawPtr<SVGInteger> toAtEndOfDurationInteger = toSVGInteger(toAtEndOfDuration);
|
| + RawPtr<SVGInteger> fromInteger = toSVGInteger(from);
|
| + RawPtr<SVGInteger> toInteger = toSVGInteger(to);
|
| + RawPtr<SVGInteger> toAtEndOfDurationInteger = toSVGInteger(toAtEndOfDuration);
|
|
|
| float animatedFloat = m_value;
|
| animationElement->animateAdditiveNumber(percentage, repeatCount, fromInteger->value(), toInteger->value(), toAtEndOfDurationInteger->value(), animatedFloat);
|
| m_value = static_cast<int>(roundf(animatedFloat));
|
| }
|
|
|
| -float SVGInteger::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
|
| +float SVGInteger::calculateDistance(RawPtr<SVGPropertyBase> other, SVGElement*)
|
| {
|
| return abs(m_value - toSVGInteger(other)->value());
|
| }
|
|
|