Backport crash fix by Huzaifa Sidhpurwala <huzaifas@redhat.com>
authorHuzaifa Sidhpurwala <huzaifas@redhat.com>
Tue, 1 Feb 2011 06:58:10 +0000 (12:28 +0530)
committerHuzaifa Sidhpurwala <huzaifas@redhat.com>
Tue, 1 Feb 2011 06:58:10 +0000 (12:28 +0530)
commit99db4f5dd550a6b79359baaf6fade33d3505ea32
tree1c98e8833596dd9b802afdc26f5b352765c4a9f8
parentfd077198c300e327ca10e891b265f8efa1436ca0
Backport crash fix by Huzaifa Sidhpurwala <huzaifas@redhat.com>
Test case has been modified to suit the WebKit version

    2010-12-07  Justin Schuh  <jschuh@chromium.org>

            Reviewed by Nikolas Zimmermann.

            Clear old SVG cursor entry before adding a new one
            https://bugs.webkit.org/show_bug.cgi?id=50549

            Test: svg/css/cursor-replace.svg

            * css/CSSCursorImageValue.cpp:
            (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
            * svg/SVGCursorElement.cpp:
            (WebCore::SVGCursorElement::~SVGCursorElement):
            (WebCore::SVGCursorElement::removeClient):
            (WebCore::SVGCursorElement::removeReferencedElement):
            * svg/SVGCursorElement.h:
            * svg/SVGElement.cpp:
            (WebCore::SVGElement::setCursorElement):
            (WebCore::SVGElement::cursorElementRemoved):
            (WebCore::SVGElement::setCursorImageValue):
            (WebCore::SVGElement::cursorImageElementRemoved):
            * svg/SVGElement.h:
    2010-12-07  Justin Schuh  <jschuh@chromium.org>

            Reviewed by Nikolas Zimmermann.

            Clear old SVG cursor entry before adding a new one
            https://bugs.webkit.org/show_bug.cgi?id=50549

            * svg/css/cursor-replace-expected.txt: Added.
            * svg/css/cursor-replace.svg: Added.

    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73432 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/svg/css/cursor-replace-modified-expected.txt [new file with mode: 0644]
LayoutTests/svg/css/cursor-replace-modified.svg [new file with mode: 0644]
WebCore/css/CSSCursorImageValue.cpp
WebCore/svg/SVGCursorElement.cpp
WebCore/svg/SVGCursorElement.h
WebCore/svg/SVGElement.cpp
WebCore/svg/SVGElement.h