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

Unified Diff: third_party/WebKit/Source/core/svg/SVGLengthList.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/SVGLengthList.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthList.cpp b/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
index df8cec0727f62d767482de5aef3f833668ffcda1..f1aa7c984ad7814ad268c489e5a5537049643dfb 100644
--- a/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
@@ -35,16 +35,16 @@ SVGLengthList::~SVGLengthList()
{
}
-PassRefPtrWillBeRawPtr<SVGLengthList> SVGLengthList::clone()
+RawPtr<SVGLengthList> SVGLengthList::clone()
{
- RefPtrWillBeRawPtr<SVGLengthList> ret = SVGLengthList::create(m_mode);
+ RawPtr<SVGLengthList> ret = SVGLengthList::create(m_mode);
ret->deepCopy(this);
return ret.release();
}
-PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGLengthList::cloneForAnimation(const String& value) const
+RawPtr<SVGPropertyBase> SVGLengthList::cloneForAnimation(const String& value) const
{
- RefPtrWillBeRawPtr<SVGLengthList> ret = SVGLengthList::create(m_mode);
+ RawPtr<SVGLengthList> ret = SVGLengthList::create(m_mode);
ret->setValueAsString(value);
return ret.release();
}
@@ -82,7 +82,7 @@ SVGParsingError SVGLengthList::parseInternal(const CharType*& ptr, const CharTyp
if (valueString.isEmpty())
break;
- RefPtrWillBeRawPtr<SVGLength> length = SVGLength::create(m_mode);
+ RawPtr<SVGLength> length = SVGLength::create(m_mode);
SVGParsingError lengthParseStatus = length->setValueAsString(valueString);
if (lengthParseStatus != SVGParseStatus::NoError)
return lengthParseStatus.offsetWith(start - listStart);
@@ -109,9 +109,9 @@ SVGParsingError SVGLengthList::setValueAsString(const String& value)
return parseInternal(ptr, end);
}
-void SVGLengthList::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement* contextElement)
+void SVGLengthList::add(RawPtr<SVGPropertyBase> other, SVGElement* contextElement)
{
- RefPtrWillBeRawPtr<SVGLengthList> otherList = toSVGLengthList(other);
+ RawPtr<SVGLengthList> otherList = toSVGLengthList(other);
if (length() != otherList->length())
return;
@@ -121,16 +121,16 @@ void SVGLengthList::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElemen
at(i)->setValue(at(i)->value(lengthContext) + otherList->at(i)->value(lengthContext), lengthContext);
}
-PassRefPtrWillBeRawPtr<SVGLength> SVGLengthList::createPaddingItem() const
+RawPtr<SVGLength> SVGLengthList::createPaddingItem() const
{
return SVGLength::create(m_mode);
}
-void SVGLengthList::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> fromValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement* contextElement)
+void SVGLengthList::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, RawPtr<SVGPropertyBase> fromValue, RawPtr<SVGPropertyBase> toValue, RawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement* contextElement)
{
- RefPtrWillBeRawPtr<SVGLengthList> fromList = toSVGLengthList(fromValue);
- RefPtrWillBeRawPtr<SVGLengthList> toList = toSVGLengthList(toValue);
- RefPtrWillBeRawPtr<SVGLengthList> toAtEndOfDurationList = toSVGLengthList(toAtEndOfDurationValue);
+ RawPtr<SVGLengthList> fromList = toSVGLengthList(fromValue);
+ RawPtr<SVGLengthList> toList = toSVGLengthList(toValue);
+ RawPtr<SVGLengthList> toAtEndOfDurationList = toSVGLengthList(toAtEndOfDurationValue);
SVGLengthContext lengthContext(contextElement);
ASSERT(m_mode == SVGLength::lengthModeForAnimatedLengthAttribute(animationElement->attributeName()));
@@ -160,7 +160,7 @@ void SVGLengthList::calculateAnimatedValue(SVGAnimationElement* animationElement
}
}
-float SVGLengthList::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGElement*)
+float SVGLengthList::calculateDistance(RawPtr<SVGPropertyBase> to, SVGElement*)
{
// FIXME: Distance calculation is not possible for SVGLengthList right now. We need the distance for every single value.
return -1;
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLengthList.h ('k') | third_party/WebKit/Source/core/svg/SVGLengthList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698