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

Unified Diff: Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h

Issue 10443074: Merge 117792 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 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 | « LayoutTests/svg/custom/bug86119-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h
===================================================================
--- Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h (revision 118877)
+++ Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h (working copy)
@@ -32,6 +32,18 @@
typedef SVGPropertyTearOff<PropertyType> PropertyTearOff;
typedef PropertyType ContentType;
+ virtual ~SVGAnimatedPropertyTearOff()
+ {
+ if (m_baseVal) {
+ ASSERT(m_baseVal->animatedProperty() == this);
+ m_baseVal->setAnimatedProperty(0);
+ }
+ if (m_animVal) {
+ ASSERT(m_animVal->animatedProperty() == this);
+ m_animVal->setAnimatedProperty(0);
+ }
+ }
+
PropertyTearOff* baseVal()
{
if (!m_baseVal)
« no previous file with comments | « LayoutTests/svg/custom/bug86119-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698