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

Unified Diff: Source/core/svg/SVGPathSegListTearOff.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/SVGPathSegListSource.cpp ('k') | Source/core/svg/SVGPathSegMovetoAbs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathSegListTearOff.h
diff --git a/Source/core/svg/SVGPathSegListTearOff.h b/Source/core/svg/SVGPathSegListTearOff.h
index 5407410cc288191e766dbc6c88137da808056129..b95e6b20a6657d40b87fad6d2deaf47eeff7c76b 100644
--- a/Source/core/svg/SVGPathSegListTearOff.h
+++ b/Source/core/svg/SVGPathSegListTearOff.h
@@ -44,17 +44,17 @@ public:
// FIXME: Currently SVGPathSegitself is a tear-off.
typedef SVGPathSeg ItemTearOffType;
- static PassRefPtr<ItemPropertyType> getValueForInsertionFromTearOff(PassRefPtr<ItemTearOffType> passNewItem, SVGElement* contextElement, const QualifiedName& attributeName)
+ static PassRefPtrWillBeRawPtr<ItemPropertyType> getValueForInsertionFromTearOff(PassRefPtrWillBeRawPtr<ItemTearOffType> passNewItem, SVGElement* contextElement, const QualifiedName& attributeName)
{
ASSERT(attributeName == SVGNames::dAttr);
- RefPtr<ItemTearOffType> newItem = passNewItem;
+ RefPtrWillBeRawPtr<ItemTearOffType> newItem = passNewItem;
newItem->setContextElement(contextElement);
return newItem.release();
}
- static PassRefPtr<ItemTearOffType> createTearOff(PassRefPtr<ItemPropertyType> passValue, SVGElement* contextElement, PropertyIsAnimValType, const QualifiedName&)
+ static PassRefPtrWillBeRawPtr<ItemTearOffType> createTearOff(PassRefPtrWillBeRawPtr<ItemPropertyType> passValue, SVGElement* contextElement, PropertyIsAnimValType, const QualifiedName&)
{
- RefPtr<SVGPathSeg> value = passValue;
+ RefPtrWillBeRawPtr<SVGPathSeg> value = passValue;
value->setContextElement(contextElement);
return value.release();
}
@@ -65,13 +65,13 @@ class SVGPathSegListTearOff final
, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtr<SVGPathSegListTearOff> create(PassRefPtr<SVGPathSegList> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = QualifiedName::null())
+ static PassRefPtrWillBeRawPtr<SVGPathSegListTearOff> create(PassRefPtrWillBeRawPtr<SVGPathSegList> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = QualifiedName::null())
{
- return adoptRef(new SVGPathSegListTearOff(target, contextElement, propertyIsAnimVal, attributeName));
+ return adoptRefWillBeNoop(new SVGPathSegListTearOff(target, contextElement, propertyIsAnimVal, attributeName));
}
private:
- SVGPathSegListTearOff(PassRefPtr<SVGPathSegList> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = QualifiedName::null())
+ SVGPathSegListTearOff(PassRefPtrWillBeRawPtr<SVGPathSegList> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = QualifiedName::null())
: SVGListPropertyTearOffHelper<SVGPathSegListTearOff, SVGPathSegList>(target, contextElement, propertyIsAnimVal, attributeName) { }
};
« no previous file with comments | « Source/core/svg/SVGPathSegListSource.cpp ('k') | Source/core/svg/SVGPathSegMovetoAbs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698