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

Unified Diff: Source/core/svg/properties/SVGStaticListPropertyTearOff.h

Issue 24863002: Revert 157959 "Introduce a new reference graph to SVG*TearOffs." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 3 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 | « Source/core/svg/properties/SVGPropertyTearOff.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/properties/SVGStaticListPropertyTearOff.h
diff --git a/Source/core/svg/properties/SVGStaticListPropertyTearOff.h b/Source/core/svg/properties/SVGStaticListPropertyTearOff.h
index 1488c59e66942cfe359f50bd092495a41cb388f1..367560fdc894874602d350882902d5a12d0b2d93 100644
--- a/Source/core/svg/properties/SVGStaticListPropertyTearOff.h
+++ b/Source/core/svg/properties/SVGStaticListPropertyTearOff.h
@@ -43,8 +43,6 @@ public:
return adoptRef(new SVGStaticListPropertyTearOff<PropertyType>(contextElement, values));
}
- SVGElement* contextElement() const { return m_contextElement; }
-
// SVGList API
void clear(ExceptionState& es)
{
@@ -96,8 +94,7 @@ private:
virtual void commitChange()
{
ASSERT(m_values);
- ASSERT(m_contextElement);
- m_values->commitChange(m_contextElement);
+ m_values->commitChange(m_contextElement.get());
}
virtual bool processIncomingListItemValue(const ListItemType&, unsigned*)
@@ -113,7 +110,7 @@ private:
}
private:
- SVGElement* m_contextElement;
+ RefPtr<SVGElement> m_contextElement;
};
}
« no previous file with comments | « Source/core/svg/properties/SVGPropertyTearOff.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698