WebCore:
Reviewed by John Sullivan.
- fix a bug in debug builds only where selecting an earlier item in
a popup selects the first item
Test: fast/forms/menulist-selection-reset.html
* html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::recalcListItems): Added an argument that
tells that function whether it should update the selected state of
option elements.
(WebCore::HTMLSelectElement::checkListItems): Changed to pass false
as the above argument.
* html/HTMLSelectElement.h:
LayoutTests:
Reviewed by John Sullivan.
- test for a bug in debug builds only where selecting an earlier item in
a popup selects the first item
* fast/forms/menulist-selection-reset-expected.txt: Added.
* fast/forms/menulist-selection-reset.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6 files changed