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

Unified Diff: Source/core/svg/SVGPreserveAspectRatio.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/SVGPreserveAspectRatio.h ('k') | Source/core/svg/SVGPreserveAspectRatio.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPreserveAspectRatio.cpp
diff --git a/Source/core/svg/SVGPreserveAspectRatio.cpp b/Source/core/svg/SVGPreserveAspectRatio.cpp
index 77ce15ad2543b7db407d1c6df18a014e93e0c621..91e08b1c73ac831c8019c19e1cbb1771a5197964 100644
--- a/Source/core/svg/SVGPreserveAspectRatio.cpp
+++ b/Source/core/svg/SVGPreserveAspectRatio.cpp
@@ -44,9 +44,9 @@ void SVGPreserveAspectRatio::setDefault()
m_meetOrSlice = SVG_MEETORSLICE_MEET;
}
-PassRefPtr<SVGPreserveAspectRatio> SVGPreserveAspectRatio::clone() const
+PassRefPtrWillBeRawPtr<SVGPreserveAspectRatio> SVGPreserveAspectRatio::clone() const
{
- RefPtr<SVGPreserveAspectRatio> preserveAspectRatio = create();
+ RefPtrWillBeRawPtr<SVGPreserveAspectRatio> preserveAspectRatio = create();
preserveAspectRatio->m_align = m_align;
preserveAspectRatio->m_meetOrSlice = m_meetOrSlice;
@@ -397,20 +397,20 @@ void SVGPreserveAspectRatio::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other,
ASSERT_NOT_REACHED();
}
-void SVGPreserveAspectRatio::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> fromValue, PassRefPtr<SVGPropertyBase> toValue, PassRefPtr<SVGPropertyBase>, SVGElement*)
+void SVGPreserveAspectRatio::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> fromValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*)
{
ASSERT(animationElement);
bool useToValue;
animationElement->animateDiscreteType(percentage, false, true, useToValue);
- RefPtr<SVGPreserveAspectRatio> preserveAspectRatioToUse = useToValue ? toSVGPreserveAspectRatio(toValue) : toSVGPreserveAspectRatio(fromValue);
+ RefPtrWillBeRawPtr<SVGPreserveAspectRatio> preserveAspectRatioToUse = useToValue ? toSVGPreserveAspectRatio(toValue) : toSVGPreserveAspectRatio(fromValue);
m_align = preserveAspectRatioToUse->m_align;
m_meetOrSlice = preserveAspectRatioToUse->m_meetOrSlice;
}
-float SVGPreserveAspectRatio::calculateDistance(PassRefPtr<SVGPropertyBase> toValue, SVGElement* contextElement)
+float SVGPreserveAspectRatio::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, SVGElement* contextElement)
{
// No paced animations for SVGPreserveAspectRatio.
return -1;
« no previous file with comments | « Source/core/svg/SVGPreserveAspectRatio.h ('k') | Source/core/svg/SVGPreserveAspectRatio.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698