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

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, 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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPath.h ('k') | third_party/WebKit/Source/core/svg/SVGPathElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 183731568824a40dc86e501f08751bf6727c00c3..cc82bb4d531ca482cbb1ed771864e41570d847f9 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)
{
@@ -89,7 +89,7 @@ String SVGPath::valueAsString() const
}
-PassRefPtrWillBeRawPtr<SVGPath> SVGPath::clone() const
+RawPtr<SVGPath> SVGPath::clone() const
{
return SVGPath::create(m_pathValue);
}
@@ -102,14 +102,14 @@ SVGParsingError SVGPath::setValueAsString(const String& string)
return parseStatus;
}
-PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGPath::cloneForAnimation(const String& value) const
+RawPtr<SVGPropertyBase> SVGPath::cloneForAnimation(const String& value) const
{
OwnPtr<SVGPathByteStream> byteStream = SVGPathByteStream::create();
buildByteStreamFromString(value, *byteStream);
return SVGPath::create(CSSPathValue::create(byteStream.release()));
}
-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()
@@ -120,7 +120,7 @@ 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->getAnimationMode() == ToAnimation;
@@ -167,7 +167,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;
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPath.h ('k') | third_party/WebKit/Source/core/svg/SVGPathElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698