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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimatedColor.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/SVGAnimatedColor.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimatedColor.cpp b/third_party/WebKit/Source/core/svg/SVGAnimatedColor.cpp
index 9e24cb8af6ffb1d4508130e24b493f5769355c75..8710ef5ea6a674a5ac7044ced1231b56b36eb4cc 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimatedColor.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAnimatedColor.cpp
@@ -40,7 +40,7 @@ String SVGColorProperty::valueAsString() const
return m_styleColor.isCurrentColor() ? "currentColor" : m_styleColor.getColor().serializedAsCSSComponentValue();
}
-PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGColorProperty::cloneForAnimation(const String&) const
+RawPtr<SVGPropertyBase> SVGColorProperty::cloneForAnimation(const String&) const
{
// SVGAnimatedColor is deprecated. So No SVG DOM animation.
ASSERT_NOT_REACHED();
@@ -55,7 +55,7 @@ static inline Color fallbackColorForCurrentColor(SVGElement* targetElement)
return Color::transparent;
}
-void SVGColorProperty::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement* contextElement)
+void SVGColorProperty::add(RawPtr<SVGPropertyBase> other, SVGElement* contextElement)
{
ASSERT(contextElement);
@@ -65,7 +65,7 @@ void SVGColorProperty::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGEle
m_styleColor = StyleColor(ColorDistance::addColors(fromColor, toColor));
}
-void SVGColorProperty::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> fromValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement* contextElement)
+void SVGColorProperty::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, RawPtr<SVGPropertyBase> fromValue, RawPtr<SVGPropertyBase> toValue, RawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement* contextElement)
{
StyleColor fromStyleColor = toSVGColorProperty(fromValue)->m_styleColor;
StyleColor toStyleColor = toSVGColorProperty(toValue)->m_styleColor;
@@ -95,7 +95,7 @@ void SVGColorProperty::calculateAnimatedValue(SVGAnimationElement* animationElem
m_styleColor = StyleColor(makeRGBA(roundf(animatedRed), roundf(animatedGreen), roundf(animatedBlue), roundf(animatedAlpha)));
}
-float SVGColorProperty::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, SVGElement* contextElement)
+float SVGColorProperty::calculateDistance(RawPtr<SVGPropertyBase> toValue, SVGElement* contextElement)
{
ASSERT(contextElement);
Color fallbackColor = fallbackColorForCurrentColor(contextElement);
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimatedColor.h ('k') | third_party/WebKit/Source/core/svg/SVGAnimatedEnumeration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698