Don't select the next selectable index when deselecting an option in select elements...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Jan 2012 02:55:08 +0000 (02:55 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Jan 2012 02:55:08 +0000 (02:55 +0000)
commitbb50f6d7ccaf6c7ed3f80cf3966a764e821cbf7c
tree0b5d129f6fccbfb99c0f98c924bfb03a13bd4c04
parentb5d2550e9bc9d6c72c8875a098e80bd5b5a3d518
Don't select the next selectable index when deselecting an option in select elements with size set to a value greater than one.
https://bugs.webkit.org/show_bug.cgi?id=76389

Patch by Pablo Flouret <pablof@motorola.com> on 2012-01-30
Reviewed by Kent Tamura.

This behavior matches the rest of the browsers.

Source/WebCore:

Test: fast/forms/select/option-selecting.html

* html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::optionSelectionStateChanged):

LayoutTests:

* fast/forms/select/option-selecting-expected.txt: Added.
* fast/forms/select/option-selecting.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/select/option-selecting-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/select/option-selecting.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLSelectElement.cpp