⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 109391 in webkit


Ignore:
Timestamp:
Mar 1, 2012, 12:29:47 PM (15 years ago)
Author:
cevans@google.com
Message:

Merge 109345
BUG=116093
Review URL: ​https://chromiumcodereview.appspot.com/9562022

Location:
branches/chromium/1025
Files:
1 edited
3 copied

Legend:

Unmodified
Added
Removed
  • branches/chromium/1025/Source/WebCore/svg/animation/SVGSMILElement.cpp

    r109361 r109391  
    216216        m_timeContainer = 0;
    217217    }
    218     if (m_targetElement) {
    219         document()->accessSVGExtensions()->removeAnimationElementFromTarget(this, m_targetElement);
    220         m_targetElement = 0;
    221     }
    222218    // Calling disconnectConditions() may kill us if there are syncbase conditions.
    223219    // OK, but we don't want to die inside the call.
    224220    RefPtr<SVGSMILElement> keepAlive(this);
    225221    disconnectConditions();
     222
     223    // Clear target now, because disconnectConditions calls targetElement() which will recreate the target if we removed it sooner.
     224    if (m_targetElement) {
     225        document()->accessSVGExtensions()->removeAnimationElementFromTarget(this, m_targetElement);
     226        m_targetElement = 0;
     227    }
     228
    226229    SVGElement::removedFromDocument();
    227230}
Note: See TracChangeset for help on using the changeset viewer.