2010-11-29 Dimitri Glazkov <dglazkov@chromium.org>
authordglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Nov 2010 15:12:39 +0000 (15:12 +0000)
committerdglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Nov 2010 15:12:39 +0000 (15:12 +0000)
commit7ceccfad278b2c150b97f5b7a40c55db92ad0db2
tree015623205d17d3970fe021c1d00e84269d95b5bd
parent18385a89f22acf3d5756e98c061a286fc64e3313
2010-11-29  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Darin Adler.

        Use the right focusable check to avoid multiple focus/blur events being fired from inside of the shadow DOM.
        https://bugs.webkit.org/show_bug.cgi?id=49977

        * fast/events/shadow-boundary-crossing-2.html: Added a test for multiple focus events.
        * fast/events/shadow-boundary-crossing-2-expected.txt: Added new test expectation.
2010-11-29  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Darin Adler.

        Use the right focusable check to avoid multiple focus/blur events being fired from inside of the shadow DOM.
        https://bugs.webkit.org/show_bug.cgi?id=49977

        * editing/SelectionController.cpp:
        (WebCore::SelectionController::setFocusedNodeIfNeeded): Added a FIXME to remove redundant code.
        * page/EventHandler.cpp:
        (WebCore::EventHandler::dispatchMouseEvent): Changed to use isMouseFocusable, which is what shadow DOM elements
            override, and added a FIXME to convert to use shadow DOM-aware traversal instead of render tree traversal.

        Test: fast/events/shadow-boundary-crossing-2.html

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72796 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/shadow-boundary-crossing-2-expected.txt
LayoutTests/fast/events/shadow-boundary-crossing-2.html
WebCore/ChangeLog
WebCore/editing/SelectionController.cpp
WebCore/page/EventHandler.cpp