LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Jul 2006 15:14:15 +0000 (15:14 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Jul 2006 15:14:15 +0000 (15:14 +0000)
commit462d182752ad235a03610b91802989fec6b21119
tree5b7e553899c67b9dd10aa726f780e953c8c7f63a
parent6df07e90c40509124406e85679e65cbcd410c327
LayoutTests:

        Reviewed by John Sullivan.

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9883
          <rdar://problem/4631821>
          REGRESSION: NativePopups don't work correctly in some forum software

        * fast/forms/select-selected-expected.checksum: Added.
        * fast/forms/select-selected-expected.png: Added.
        * fast/forms/select-selected-expected.txt: Added.
        * fast/forms/select-selected.html: Added.

WebCore:

        Reviewed by John Sullivan.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9883
          <rdar://problem/4631821>
          REGRESSION: NativePopups don't work correctly in some forum software

        Test: fast/forms/select-selected.html

        * rendering/RenderMenuList.h:
        * rendering/RenderMenuList.cpp:
        (WebCore::RenderMenuList::updateFromElement): Added code to map the selected option
        index to a list index before using it to index into the list.
        (WebCore::RenderMenuList::showPopup): Added code to map the selection option index
        to a list index before passing it to the menu renderer.
        (WebCore::RenderMenuList::valueChanged): Added code to map the list index back to a
        option index before calling setSelectedIndex (that function takes an option index).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15453 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/select-selected-expected.checksum [new file with mode: 0644]
LayoutTests/fast/forms/select-selected-expected.png [new file with mode: 0644]
LayoutTests/fast/forms/select-selected-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/select-selected.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderMenuList.cpp
WebCore/rendering/RenderMenuList.h