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

Unified Diff: Source/core/svg/SVGInteger.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/SVGInteger.h ('k') | Source/core/svg/SVGIntegerOptionalInteger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGInteger.cpp
diff --git a/Source/core/svg/SVGInteger.cpp b/Source/core/svg/SVGInteger.cpp
index 18fcbf73ec50efa3098bc2124d1e6e7df279db83..f6642e76b221a3d57f15c796e19c295a097fa993 100644
--- a/Source/core/svg/SVGInteger.cpp
+++ b/Source/core/svg/SVGInteger.cpp
@@ -41,7 +41,7 @@ SVGInteger::SVGInteger(int value)
{
}
-PassRefPtr<SVGInteger> SVGInteger::clone() const
+PassRefPtrWillBeRawPtr<SVGInteger> SVGInteger::clone() const
{
return create(m_value);
}
@@ -72,20 +72,20 @@ void SVGInteger::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
setValue(m_value + toSVGInteger(other)->value());
}
-void SVGInteger::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> from, PassRefPtr<SVGPropertyBase> to, PassRefPtr<SVGPropertyBase> toAtEndOfDuration, SVGElement*)
+void SVGInteger::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> from, PassRefPtrWillBeRawPtr<SVGPropertyBase> to, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDuration, SVGElement*)
{
ASSERT(animationElement);
- RefPtr<SVGInteger> fromInteger = toSVGInteger(from);
- RefPtr<SVGInteger> toInteger = toSVGInteger(to);
- RefPtr<SVGInteger> toAtEndOfDurationInteger = toSVGInteger(toAtEndOfDuration);
+ RefPtrWillBeRawPtr<SVGInteger> fromInteger = toSVGInteger(from);
+ RefPtrWillBeRawPtr<SVGInteger> toInteger = toSVGInteger(to);
+ RefPtrWillBeRawPtr<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(PassRefPtr<SVGPropertyBase> other, SVGElement*)
+float SVGInteger::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
{
return abs(m_value - toSVGInteger(other)->value());
}
« no previous file with comments | « Source/core/svg/SVGInteger.h ('k') | Source/core/svg/SVGIntegerOptionalInteger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698