Changeset 86748 in webkit


Ignore:
Timestamp:
May 18, 2011 3:45:07 AM (13 years ago)
Author:
inferno@chromium.org
Message:

2011-05-18 Abhishek Arya <inferno@chromium.org>

Reviewed by Dirk Schulze.

Tests that we do not crash when trying to access a removed
smil element in animated elements list.
https://bugs.webkit.org/show_bug.cgi?id=60980

  • svg/animations/smil-element-not-removed-crash-expected.txt: Added.
  • svg/animations/smil-element-not-removed-crash.html: Added.

2011-05-18 Abhishek Arya <inferno@chromium.org>

Reviewed by Dirk Schulze.

When SMIL element is getting removed, make sure to remove it
from target's animation elements list.
https://bugs.webkit.org/show_bug.cgi?id=60980

Test: svg/animations/smil-element-not-removed-crash.html

  • svg/animation/SVGSMILElement.cpp: (WebCore::SVGSMILElement::~SVGSMILElement):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r86744 r86748  
     12011-05-18  Abhishek Arya  <inferno@chromium.org>
     2
     3        Reviewed by Dirk Schulze.
     4
     5        Tests that we do not crash when trying to access a removed
     6        smil element in animated elements list.
     7        https://bugs.webkit.org/show_bug.cgi?id=60980
     8
     9        * svg/animations/smil-element-not-removed-crash-expected.txt: Added.
     10        * svg/animations/smil-element-not-removed-crash.html: Added.
     11
    1122011-05-18  Kent Tamura  <tkent@chromium.org>
    213
  • trunk/Source/WebCore/ChangeLog

    r86747 r86748  
     12011-05-18  Abhishek Arya  <inferno@chromium.org>
     2
     3        Reviewed by Dirk Schulze.
     4
     5        When SMIL element is getting removed, make sure to remove it
     6        from target's animation elements list.
     7        https://bugs.webkit.org/show_bug.cgi?id=60980
     8
     9        Test: svg/animations/smil-element-not-removed-crash.html
     10
     11        * svg/animation/SVGSMILElement.cpp:
     12        (WebCore::SVGSMILElement::~SVGSMILElement):
     13
    1142011-05-18  Pavel Feldman  <pfeldman@google.com>
    215
  • trunk/Source/WebCore/svg/animation/SVGSMILElement.cpp

    r85973 r86748  
    142142    if (m_timeContainer)
    143143        m_timeContainer->unschedule(this);
     144    if (m_targetElement)
     145        document()->accessSVGExtensions()->removeAnimationElementFromTarget(this, m_targetElement);
    144146}
    145147
Note: See TracChangeset for help on using the changeset viewer.