diff options
Diffstat (limited to 'WebCore/svg/properties/SVGPropertyTearOff.h')
-rw-r--r-- | WebCore/svg/properties/SVGPropertyTearOff.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/WebCore/svg/properties/SVGPropertyTearOff.h b/WebCore/svg/properties/SVGPropertyTearOff.h index 2ffaede..219a4a6 100644 --- a/WebCore/svg/properties/SVGPropertyTearOff.h +++ b/WebCore/svg/properties/SVGPropertyTearOff.h @@ -69,6 +69,9 @@ public: void detachWrapper() { + if (m_valueIsCopy) + return; + // Switch from a live value, to a non-live value. // For example: <text x="50"/> // var item = text.x.baseVal.getItem(0); @@ -76,7 +79,6 @@ public: // item.value still has to report '50' and it has to be possible to modify 'item' // w/o changing the "new item" (with x=100) in the text element. // Whenever the XML DOM modifies the "x" attribute, all existing wrappers are detached, using this function. - ASSERT(!m_valueIsCopy); m_value = new PropertyType(*m_value); m_valueIsCopy = true; m_animatedProperty = 0; |