LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 May 2006 17:47:02 +0000 (17:47 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 May 2006 17:47:02 +0000 (17:47 +0000)
commit7583ea618a1a3a6425a6d31560b40b1b71e8cb36
tree8d555ddf81952b2657d8814180711a156647f558
parent85859b7b454392f7b1608641ecacffc691a7dfe3
LayoutTests:

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8743
          REGRESSION: focus() on input field selects all text within it (was: cannot select cities on British Rail reservation site)

        * fast/forms/double-focus-expected.txt: Added.
        * fast/forms/double-focus.html: Added.

WebCore:

        Reviewed by Adele.

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8743
          REGRESSION: focus() on input field selects all text within it
          (was: cannot select cities on British Rail reservation site)

        Test: fast/forms/double-focus.html

        * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::focus):
        Changed to only call setFocusNode, select, and revealSelection
        if the element is not already focused. Also changed to use return
        a bit more rather than else.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14301 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/double-focus-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/double-focus.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLInputElement.cpp