Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Unified Diff: third_party/WebKit/Source/core/svg/SVGInteger.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGInteger.h ('k') | third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698