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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.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
Index: third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp b/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp
index 6f4f84f4b084c10322929b80babf0d0661afca4a..d6e561bcad96a51e90fda8919514561da7ebe5e3 100644
--- a/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp
@@ -41,9 +41,9 @@ void SVGPreserveAspectRatio::setDefault()
m_meetOrSlice = SVG_MEETORSLICE_MEET;
}
-PassRefPtrWillBeRawPtr<SVGPreserveAspectRatio> SVGPreserveAspectRatio::clone() const
+RawPtr<SVGPreserveAspectRatio> SVGPreserveAspectRatio::clone() const
{
- RefPtrWillBeRawPtr<SVGPreserveAspectRatio> preserveAspectRatio = create();
+ RawPtr<SVGPreserveAspectRatio> preserveAspectRatio = create();
preserveAspectRatio->m_align = m_align;
preserveAspectRatio->m_meetOrSlice = m_meetOrSlice;
@@ -379,25 +379,25 @@ String SVGPreserveAspectRatio::valueAsString() const
return builder.toString();
}
-void SVGPreserveAspectRatio::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
+void SVGPreserveAspectRatio::add(RawPtr<SVGPropertyBase> other, SVGElement*)
{
ASSERT_NOT_REACHED();
}
-void SVGPreserveAspectRatio::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> fromValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*)
+void SVGPreserveAspectRatio::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, RawPtr<SVGPropertyBase> fromValue, RawPtr<SVGPropertyBase> toValue, RawPtr<SVGPropertyBase>, SVGElement*)
{
ASSERT(animationElement);
bool useToValue;
animationElement->animateDiscreteType(percentage, false, true, useToValue);
- RefPtrWillBeRawPtr<SVGPreserveAspectRatio> preserveAspectRatioToUse = useToValue ? toSVGPreserveAspectRatio(toValue) : toSVGPreserveAspectRatio(fromValue);
+ RawPtr<SVGPreserveAspectRatio> preserveAspectRatioToUse = useToValue ? toSVGPreserveAspectRatio(toValue) : toSVGPreserveAspectRatio(fromValue);
m_align = preserveAspectRatioToUse->m_align;
m_meetOrSlice = preserveAspectRatioToUse->m_meetOrSlice;
}
-float SVGPreserveAspectRatio::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, SVGElement* contextElement)
+float SVGPreserveAspectRatio::calculateDistance(RawPtr<SVGPropertyBase> toValue, SVGElement* contextElement)
{
// No paced animations for SVGPreserveAspectRatio.
return -1;

Powered by Google App Engine
This is Rietveld 408576698