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

Unified Diff: Source/core/svg/SVGRect.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/SVGRect.h ('k') | Source/core/svg/SVGRect.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGRect.cpp
diff --git a/Source/core/svg/SVGRect.cpp b/Source/core/svg/SVGRect.cpp
index 31ff8b8ce2e5378c148dfea6ddd07c75a66b2d7f..95d8078157cfd05f3924ed24684edb5033eb0568 100644
--- a/Source/core/svg/SVGRect.cpp
+++ b/Source/core/svg/SVGRect.cpp
@@ -48,7 +48,7 @@ SVGRect::SVGRect(const FloatRect& rect)
{
}
-PassRefPtr<SVGRect> SVGRect::clone() const
+PassRefPtrWillBeRawPtr<SVGRect> SVGRect::clone() const
{
return SVGRect::create(m_value);
}
@@ -125,12 +125,12 @@ void SVGRect::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
m_value += toSVGRect(other)->value();
}
-void SVGRect::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> fromValue, PassRefPtr<SVGPropertyBase> toValue, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*)
+void SVGRect::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> fromValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*)
{
ASSERT(animationElement);
- RefPtr<SVGRect> fromRect = animationElement->animationMode() == ToAnimation ? this : toSVGRect(fromValue);
- RefPtr<SVGRect> toRect = toSVGRect(toValue);
- RefPtr<SVGRect> toAtEndOfDurationRect = toSVGRect(toAtEndOfDurationValue);
+ RefPtrWillBeRawPtr<SVGRect> fromRect = animationElement->animationMode() == ToAnimation ? PassRefPtrWillBeRawPtr<SVGRect>(this) : toSVGRect(fromValue);
+ RefPtrWillBeRawPtr<SVGRect> toRect = toSVGRect(toValue);
+ RefPtrWillBeRawPtr<SVGRect> toAtEndOfDurationRect = toSVGRect(toAtEndOfDurationValue);
float animatedX = x();
float animatedY = y();
@@ -144,7 +144,7 @@ void SVGRect::calculateAnimatedValue(SVGAnimationElement* animationElement, floa
m_value = FloatRect(animatedX, animatedY, animatedWidth, animatedHeight);
}
-float SVGRect::calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement* contextElement)
+float SVGRect::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGElement* contextElement)
{
// FIXME: Distance calculation is not possible for SVGRect right now. We need the distance for every single value.
return -1;
« no previous file with comments | « Source/core/svg/SVGRect.h ('k') | Source/core/svg/SVGRect.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698