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

Unified Diff: Source/core/svg/SVGNumber.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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 | « Source/core/svg/SVGNumber.h ('k') | Source/core/svg/SVGNumber.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGNumber.cpp
diff --git a/Source/core/svg/SVGNumber.cpp b/Source/core/svg/SVGNumber.cpp
index 9d5b2c18f27fad5b6cc4fd4d2945fed8110c5080..14bd88cead72ead1183db7126ae8e99d047122c9 100644
--- a/Source/core/svg/SVGNumber.cpp
+++ b/Source/core/svg/SVGNumber.cpp
@@ -41,7 +41,7 @@ SVGNumber::SVGNumber(float value)
{
}
-PassRefPtr<SVGNumber> SVGNumber::clone() const
+PassRefPtrWillBeRawPtr<SVGNumber> SVGNumber::clone() const
{
return create(m_value);
}
@@ -96,23 +96,23 @@ void SVGNumber::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
setValue(m_value + toSVGNumber(other)->value());
}
-void SVGNumber::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> from, PassRefPtr<SVGPropertyBase> to, PassRefPtr<SVGPropertyBase> toAtEndOfDuration, SVGElement*)
+void SVGNumber::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> from, PassRefPtrWillBeRawPtr<SVGPropertyBase> to, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDuration, SVGElement*)
{
ASSERT(animationElement);
- RefPtr<SVGNumber> fromNumber = toSVGNumber(from);
- RefPtr<SVGNumber> toNumber = toSVGNumber(to);
- RefPtr<SVGNumber> toAtEndOfDurationNumber = toSVGNumber(toAtEndOfDuration);
+ RefPtrWillBeRawPtr<SVGNumber> fromNumber = toSVGNumber(from);
+ RefPtrWillBeRawPtr<SVGNumber> toNumber = toSVGNumber(to);
+ RefPtrWillBeRawPtr<SVGNumber> toAtEndOfDurationNumber = toSVGNumber(toAtEndOfDuration);
animationElement->animateAdditiveNumber(percentage, repeatCount, fromNumber->value(), toNumber->value(), toAtEndOfDurationNumber->value(), m_value);
}
-float SVGNumber::calculateDistance(PassRefPtr<SVGPropertyBase> other, SVGElement*)
+float SVGNumber::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
{
return fabsf(m_value - toSVGNumber(other)->value());
}
-PassRefPtr<SVGNumber> SVGNumberAcceptPercentage::clone() const
+PassRefPtrWillBeRawPtr<SVGNumber> SVGNumberAcceptPercentage::clone() const
{
return create(m_value);
}
« no previous file with comments | « Source/core/svg/SVGNumber.h ('k') | Source/core/svg/SVGNumber.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698