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

Unified Diff: third_party/WebKit/Source/core/svg/SVGNumber.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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGNumber.h ('k') | third_party/WebKit/Source/core/svg/SVGNumber.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGNumber.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGNumber.cpp b/third_party/WebKit/Source/core/svg/SVGNumber.cpp
index 2b0d97f0dcd90691a38c2944f7bf6046067b079a..617588832034faef43654670f4ac3cddd1b64c24 100644
--- a/third_party/WebKit/Source/core/svg/SVGNumber.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGNumber.cpp
@@ -40,7 +40,7 @@ SVGNumber::SVGNumber(float value)
{
}
-PassRefPtrWillBeRawPtr<SVGNumber> SVGNumber::clone() const
+RawPtr<SVGNumber> SVGNumber::clone() const
{
return create(m_value);
}
@@ -80,28 +80,28 @@ SVGParsingError SVGNumber::setValueAsString(const String& string)
return parse(ptr, end);
}
-void SVGNumber::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
+void SVGNumber::add(RawPtr<SVGPropertyBase> other, SVGElement*)
{
setValue(m_value + toSVGNumber(other)->value());
}
-void SVGNumber::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> from, PassRefPtrWillBeRawPtr<SVGPropertyBase> to, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDuration, SVGElement*)
+void SVGNumber::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, RawPtr<SVGPropertyBase> from, RawPtr<SVGPropertyBase> to, RawPtr<SVGPropertyBase> toAtEndOfDuration, SVGElement*)
{
ASSERT(animationElement);
- RefPtrWillBeRawPtr<SVGNumber> fromNumber = toSVGNumber(from);
- RefPtrWillBeRawPtr<SVGNumber> toNumber = toSVGNumber(to);
- RefPtrWillBeRawPtr<SVGNumber> toAtEndOfDurationNumber = toSVGNumber(toAtEndOfDuration);
+ RawPtr<SVGNumber> fromNumber = toSVGNumber(from);
+ RawPtr<SVGNumber> toNumber = toSVGNumber(to);
+ RawPtr<SVGNumber> toAtEndOfDurationNumber = toSVGNumber(toAtEndOfDuration);
animationElement->animateAdditiveNumber(percentage, repeatCount, fromNumber->value(), toNumber->value(), toAtEndOfDurationNumber->value(), m_value);
}
-float SVGNumber::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
+float SVGNumber::calculateDistance(RawPtr<SVGPropertyBase> other, SVGElement*)
{
return fabsf(m_value - toSVGNumber(other)->value());
}
-PassRefPtrWillBeRawPtr<SVGNumber> SVGNumberAcceptPercentage::clone() const
+RawPtr<SVGNumber> SVGNumberAcceptPercentage::clone() const
{
return create(m_value);
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGNumber.h ('k') | third_party/WebKit/Source/core/svg/SVGNumber.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698