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

Unified Diff: third_party/WebKit/Source/core/svg/SVGNumber.h

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/SVGNumber.h
diff --git a/third_party/WebKit/Source/core/svg/SVGNumber.h b/third_party/WebKit/Source/core/svg/SVGNumber.h
index 7addb92a184070e54b6672af2e0a5288119d203d..dc3a0263116c0177a1d5d01ab2e147f139d39251 100644
--- a/third_party/WebKit/Source/core/svg/SVGNumber.h
+++ b/third_party/WebKit/Source/core/svg/SVGNumber.h
@@ -44,12 +44,12 @@ public:
typedef SVGNumberTearOff TearOffType;
typedef float PrimitiveType;
- static PassRefPtrWillBeRawPtr<SVGNumber> create(float value = 0.0f)
+ static RawPtr<SVGNumber> create(float value = 0.0f)
{
- return adoptRefWillBeNoop(new SVGNumber(value));
+ return new SVGNumber(value);
}
- virtual PassRefPtrWillBeRawPtr<SVGNumber> clone() const;
+ virtual RawPtr<SVGNumber> clone() const;
float value() const { return m_value; }
void setValue(float value) { m_value = value; }
@@ -57,9 +57,9 @@ public:
String valueAsString() const override;
virtual SVGParsingError setValueAsString(const String&);
- void add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*) override;
- void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> from, PassRefPtrWillBeRawPtr<SVGPropertyBase> to, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement* contextElement) override;
- float calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGElement* contextElement) override;
+ void add(RawPtr<SVGPropertyBase>, SVGElement*) override;
+ void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, RawPtr<SVGPropertyBase> from, RawPtr<SVGPropertyBase> to, RawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement* contextElement) override;
+ float calculateDistance(RawPtr<SVGPropertyBase> to, SVGElement* contextElement) override;
static AnimatedPropertyType classType() { return AnimatedNumber; }
@@ -80,12 +80,12 @@ DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGNumber);
// offset = "<number> | <percentage>"
class SVGNumberAcceptPercentage final : public SVGNumber {
public:
- static PassRefPtrWillBeRawPtr<SVGNumberAcceptPercentage> create(float value = 0)
+ static RawPtr<SVGNumberAcceptPercentage> create(float value = 0)
{
- return adoptRefWillBeNoop(new SVGNumberAcceptPercentage(value));
+ return new SVGNumberAcceptPercentage(value);
}
- PassRefPtrWillBeRawPtr<SVGNumber> clone() const override;
+ RawPtr<SVGNumber> clone() const override;
SVGParsingError setValueAsString(const String&) override;
private:
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGMatrixTearOff.cpp ('k') | third_party/WebKit/Source/core/svg/SVGNumber.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698