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

Unified Diff: Source/core/svg/SVGBoolean.h

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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 | « Source/core/svg/SVGAnimatedTypeAnimator.cpp ('k') | Source/core/svg/SVGBoolean.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGBoolean.h
diff --git a/Source/core/svg/SVGBoolean.h b/Source/core/svg/SVGBoolean.h
index ed8b8746449653351cbf7b313da157ba51ee783e..39b64ea17487b752d0689c382689eeb8d69c9dfc 100644
--- a/Source/core/svg/SVGBoolean.h
+++ b/Source/core/svg/SVGBoolean.h
@@ -41,19 +41,19 @@ public:
typedef void TearOffType;
typedef bool PrimitiveType;
- static PassRefPtr<SVGBoolean> create(bool value = false)
+ static PassRefPtrWillBeRawPtr<SVGBoolean> create(bool value = false)
{
- return adoptRef(new SVGBoolean(value));
+ return adoptRefWillBeNoop(new SVGBoolean(value));
}
- PassRefPtr<SVGBoolean> clone() const { return create(m_value); }
+ PassRefPtrWillBeRawPtr<SVGBoolean> clone() const { return create(m_value); }
virtual String valueAsString() const override;
void setValueAsString(const String&, ExceptionState&);
virtual void add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*) override;
- virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> from, PassRefPtr<SVGPropertyBase> to, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*) override;
- virtual float calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement*) override;
+ virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> from, PassRefPtrWillBeRawPtr<SVGPropertyBase> to, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*) override;
+ virtual float calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGElement*) override;
bool value() const { return m_value; }
void setValue(bool value) { m_value = value; }
@@ -69,9 +69,9 @@ private:
bool m_value;
};
-inline PassRefPtr<SVGBoolean> toSVGBoolean(PassRefPtr<SVGPropertyBase> passBase)
+inline PassRefPtrWillBeRawPtr<SVGBoolean> toSVGBoolean(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)
{
- RefPtr<SVGPropertyBase> base = passBase;
+ RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
ASSERT(base->type() == SVGBoolean::classType());
return static_pointer_cast<SVGBoolean>(base.release());
}
« no previous file with comments | « Source/core/svg/SVGAnimatedTypeAnimator.cpp ('k') | Source/core/svg/SVGBoolean.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698