LayoutTests:
authorweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Feb 2007 02:35:13 +0000 (02:35 +0000)
committerweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Feb 2007 02:35:13 +0000 (02:35 +0000)
commitfc69addbcbc2a466d6bc78445a765fb949b39fcb
treedc660cbf5809fe6e060e126a281f6633bb400135
parentc40a4c813df30074d504e5d772b6a5b4825eae00
LayoutTests:

        Reviewed by Darin.

        - test for http://bugs.webkit.org/show_bug.cgi?id=12823
          REGRESSION(r16968-16977): unable to prevent selection by cancelling "selectstart" event

        * fast/events/selectstart-during-autoscroll-expected.txt: Added.
        * fast/events/selectstart-during-autoscroll.html: Added.

WebCore:

        Reviewed by Darin.

        - fix http://bugs.webkit.org/show_bug.cgi?id=12823
          REGRESSION(r16968-16977): unable to prevent selection by cancelling "selectstart" event

        Test: fast/events/selectstart-during-autoscroll.html

        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::autoscroll): Invoke the renderer's shouldSelect() --
        which dispatches the selection DOM event and gives it a chance to cancel
        the selection -- before updating the selection during autoscroll.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19835 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/selectstart-during-autoscroll-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/selectstart-during-autoscroll.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderLayer.cpp