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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPath.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, 10 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/SVGPath.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPath.cpp b/third_party/WebKit/Source/core/svg/SVGPath.cpp
index 37547edf1aca8fc430b5258658ad1e573b2271e4..71af5a759c43d19131933cf89576d880890ee2d7 100644
--- a/third_party/WebKit/Source/core/svg/SVGPath.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPath.cpp
@@ -72,7 +72,7 @@ SVGPath::SVGPath()
{
}
-SVGPath::SVGPath(PassRefPtrWillBeRawPtr<CSSPathValue> pathValue)
+SVGPath::SVGPath(RawPtr<CSSPathValue> pathValue)
: SVGPropertyBase(classType())
, m_pathValue(pathValue)
{
@@ -88,7 +88,7 @@ String SVGPath::valueAsString() const
}
-PassRefPtrWillBeRawPtr<SVGPath> SVGPath::clone() const
+RawPtr<SVGPath> SVGPath::clone() const
{
return SVGPath::create(m_pathValue);
}
@@ -101,12 +101,12 @@ SVGParsingError SVGPath::setValueAsString(const String& string)
return parseStatus;
}
-PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGPath::cloneForAnimation(const String& value) const
+RawPtr<SVGPropertyBase> SVGPath::cloneForAnimation(const String& value) const
{
return SVGPath::create(CSSPathValue::create(value));
}
-void SVGPath::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
+void SVGPath::add(RawPtr<SVGPropertyBase> other, SVGElement*)
{
const SVGPathByteStream& otherPathByteStream = toSVGPath(other)->byteStream();
if (byteStream().size() != otherPathByteStream.size()
@@ -117,19 +117,19 @@ void SVGPath::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)
m_pathValue = CSSPathValue::create(addPathByteStreams(byteStream(), otherPathByteStream));
}
-void SVGPath::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> fromValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*)
+void SVGPath::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, RawPtr<SVGPropertyBase> fromValue, RawPtr<SVGPropertyBase> toValue, RawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*)
{
ASSERT(animationElement);
bool isToAnimation = animationElement->animationMode() == ToAnimation;
- const RefPtrWillBeRawPtr<SVGPath> to = toSVGPath(toValue);
+ const RawPtr<SVGPath> to = toSVGPath(toValue);
const SVGPathByteStream& toStream = to->byteStream();
// If no 'to' value is given, nothing to animate.
if (!toStream.size())
return;
- const RefPtrWillBeRawPtr<SVGPath> from = toSVGPath(fromValue);
+ const RawPtr<SVGPath> from = toSVGPath(fromValue);
const SVGPathByteStream* fromStream = &from->byteStream();
RefPtr<SVGPathByteStream> copy;
@@ -164,7 +164,7 @@ void SVGPath::calculateAnimatedValue(SVGAnimationElement* animationElement, floa
m_pathValue = CSSPathValue::create(newStream.release());
}
-float SVGPath::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGElement*)
+float SVGPath::calculateDistance(RawPtr<SVGPropertyBase> to, SVGElement*)
{
// FIXME: Support paced animations.
return -1;

Powered by Google App Engine
This is Rietveld 408576698