LayoutTests:
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Dec 2006 21:30:18 +0000 (21:30 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Dec 2006 21:30:18 +0000 (21:30 +0000)
commit9f30f23715f2dd9f6588c4600c45623278ca62f5
treea523d8c420ed5d366c20cd9b921dc345e4fa7a5a
parent4c1df41ed1ec33c2d3589e93b05a0253a20433b5
LayoutTests:

        Reviewed by Maciej.

        Test for http://bugs.webkit.org/show_bug.cgi?id=11189
        <rdar://problem/4770249> REGRESSION (NativeListBox): When a list box has focus, pressing command- A (select all) doesn't selected all items in list

        * fast/forms/listbox-select-all-expected.txt: Added.
        * fast/forms/listbox-select-all.html: Added.

WebCore:

        Reviewed by Maciej.

        Fix for http://bugs.webkit.org/show_bug.cgi?id=11189
        <rdar://problem/4770249> REGRESSION (NativeListBox): When a list box has focus, pressing command- A (select all) doesn't selected all items in list

        Test: fast/forms/listbox-select-all.html

        * dom/Node.h: We should try to find a more appropriate place to put these methods.
        (WebCore::Node::canSelectAll): Added.
        (WebCore::Node::selectAll): Added.
        * editing/SelectionController.cpp: (WebCore::SelectionController::selectAll): Before selecting editable content, give the focused node
          a chance to select its content.
        * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::selectAll): Selects all items in a multi-select list box.  Single-select
          list boxes will just do nothing, but we still want the select to handle this case when it has focus, rather than selecting other content.
        * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::canSelectAll): Returns true for list boxes.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/listbox-select-all-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/listbox-select-all.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Node.h
WebCore/editing/SelectionController.cpp
WebCore/html/HTMLSelectElement.cpp
WebCore/html/HTMLSelectElement.h