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

Unified Diff: third_party/WebKit/Source/core/svg/SVGLength.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/SVGLength.h ('k') | third_party/WebKit/Source/core/svg/SVGLength.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGLength.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLength.cpp b/third_party/WebKit/Source/core/svg/SVGLength.cpp
index 467b063921259ef38134c5e7096625647e534e86..14ef4986048d73a48d3283ba9a1c01d03ed20e89 100644
--- a/third_party/WebKit/Source/core/svg/SVGLength.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLength.cpp
@@ -53,14 +53,14 @@ DEFINE_TRACE(SVGLength)
SVGPropertyBase::trace(visitor);
}
-PassRefPtrWillBeRawPtr<SVGLength> SVGLength::clone() const
+RawPtr<SVGLength> SVGLength::clone() const
{
- return adoptRefWillBeNoop(new SVGLength(*this));
+ return new SVGLength(*this);
}
-PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGLength::cloneForAnimation(const String& value) const
+RawPtr<SVGPropertyBase> SVGLength::cloneForAnimation(const String& value) const
{
- RefPtrWillBeRawPtr<SVGLength> length = create();
+ RawPtr<SVGLength> length = create();
length->m_unitMode = m_unitMode;
if (length->setValueAsString(value) != SVGParseStatus::NoError)
@@ -137,7 +137,7 @@ SVGParsingError SVGLength::setValueAsString(const String& string)
}
CSSParserContext svgParserContext(SVGAttributeMode, 0);
- RefPtrWillBeRawPtr<CSSValue> parsed = CSSParser::parseSingleValue(CSSPropertyX, string, svgParserContext);
+ RawPtr<CSSValue> parsed = CSSParser::parseSingleValue(CSSPropertyX, string, svgParserContext);
if (!parsed || !parsed->isPrimitiveValue())
return SVGParseStatus::ExpectedLength;
@@ -227,7 +227,7 @@ bool SVGLength::negativeValuesForbiddenForAnimatedLengthAttribute(const Qualifie
return s_noNegativeValuesSet.contains(attrName);
}
-void SVGLength::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement* contextElement)
+void SVGLength::add(RawPtr<SVGPropertyBase> other, SVGElement* contextElement)
{
SVGLengthContext lengthContext(contextElement);
setValue(value(lengthContext) + toSVGLength(other)->value(lengthContext), lengthContext);
@@ -236,14 +236,14 @@ void SVGLength::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement* c
void SVGLength::calculateAnimatedValue(SVGAnimationElement* animationElement,
float percentage,
unsigned repeatCount,
- PassRefPtrWillBeRawPtr<SVGPropertyBase> fromValue,
- PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue,
- PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDurationValue,
+ RawPtr<SVGPropertyBase> fromValue,
+ RawPtr<SVGPropertyBase> toValue,
+ RawPtr<SVGPropertyBase> toAtEndOfDurationValue,
SVGElement* contextElement)
{
- RefPtrWillBeRawPtr<SVGLength> fromLength = toSVGLength(fromValue);
- RefPtrWillBeRawPtr<SVGLength> toLength = toSVGLength(toValue);
- RefPtrWillBeRawPtr<SVGLength> toAtEndOfDurationLength = toSVGLength(toAtEndOfDurationValue);
+ RawPtr<SVGLength> fromLength = toSVGLength(fromValue);
+ RawPtr<SVGLength> toLength = toSVGLength(toValue);
+ RawPtr<SVGLength> toAtEndOfDurationLength = toSVGLength(toAtEndOfDurationValue);
SVGLengthContext lengthContext(contextElement);
float animatedNumber = value(lengthContext);
@@ -257,10 +257,10 @@ void SVGLength::calculateAnimatedValue(SVGAnimationElement* animationElement,
m_value = CSSPrimitiveValue::create(animatedNumber, newUnit);
}
-float SVGLength::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, SVGElement* contextElement)
+float SVGLength::calculateDistance(RawPtr<SVGPropertyBase> toValue, SVGElement* contextElement)
{
SVGLengthContext lengthContext(contextElement);
- RefPtrWillBeRawPtr<SVGLength> toLength = toSVGLength(toValue);
+ RawPtr<SVGLength> toLength = toSVGLength(toValue);
return fabsf(toLength->value(lengthContext) - value(lengthContext));
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLength.h ('k') | third_party/WebKit/Source/core/svg/SVGLength.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698