2011-05-21 Dirk Schulze <krit@webkit.org>
authorDirk Schulze <krit@webkit.org>
Sun, 22 May 2011 06:58:30 +0000 (06:58 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 23 May 2011 14:32:29 +0000 (11:32 -0300)
commit91c06161ea371d3008f4ca0a8e6fca659f91b527
treeed2594d2acb2cbd99449eddcad014922bdedfa30
parentc4e70104bbca28568dfa27ea3b84c7154ef7770a
2011-05-21  Dirk Schulze  <krit@webkit.org>

        Reviewed by Darin Adler.

        REGRESSION(r66731): pointer-events are broken in some cases
        https://bugs.webkit.org/show_bug.cgi?id=45467

        The SVGSVGElement shouldn't be the target of a mouse event, if its pointer-events attribute is set
        to 'none'. This matches the behavior on Firefox where an embedded SVG element is the target of an event,
        if none of its childs caught the event. This is the case for all pointer-events other than 'none'.

        Tests: svg/custom/pointer-events-on-svg-with-pointer.xhtml
               svg/custom/pointer-events-on-svg-without-pointer.xhtml

        * rendering/svg/RenderSVGRoot.cpp:
        (WebCore::RenderSVGRoot::nodeAtPoint):
2011-05-21  Dirk Schulze  <krit@webkit.org>

        Reviewed by Darin Adler.

        REGRESSION(r66731): pointer-events are broken in some cases
        https://bugs.webkit.org/show_bug.cgi?id=45467

        Check that an embedded SVG element doesn't have a pointer, if pointer-events is set to 'none'.

        * svg/custom/pointer-events-on-svg-with-pointer-expected.txt: Added.
        * svg/custom/pointer-events-on-svg-with-pointer.xhtml: Added.
        * svg/custom/pointer-events-on-svg-without-pointer-expected.txt: Added.
        * svg/custom/pointer-events-on-svg-without-pointer.xhtml: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/custom/pointer-events-on-svg-with-pointer-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/pointer-events-on-svg-with-pointer.xhtml [new file with mode: 0644]
LayoutTests/svg/custom/pointer-events-on-svg-without-pointer-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/pointer-events-on-svg-without-pointer.xhtml [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/svg/RenderSVGRoot.cpp