Changeset 106318 in webkit


Ignore:
Timestamp:
Jan 30, 2012 6:55:08 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

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.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r106316 r106318  
     12012-01-30  Pablo Flouret  <pablof@motorola.com>
     2
     3        Don't select the next selectable index when deselecting an option in select elements with size set to a value greater than one.
     4        https://bugs.webkit.org/show_bug.cgi?id=76389
     5
     6        Reviewed by Kent Tamura.
     7
     8        This behavior matches the rest of the browsers.
     9
     10        * fast/forms/select/option-selecting-expected.txt: Added.
     11        * fast/forms/select/option-selecting.html: Added.
     12
    1132012-01-30  Levi Weintraub  <leviw@chromium.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r106317 r106318  
     12012-01-30  Pablo Flouret  <pablof@motorola.com>
     2
     3        Don't select the next selectable index when deselecting an option in select elements with size set to a value greater than one.
     4        https://bugs.webkit.org/show_bug.cgi?id=76389
     5
     6        Reviewed by Kent Tamura.
     7
     8        This behavior matches the rest of the browsers.
     9
     10        Test: fast/forms/select/option-selecting.html
     11
     12        * html/HTMLSelectElement.cpp:
     13        (WebCore::HTMLSelectElement::optionSelectionStateChanged):
     14
    1152012-01-30  Anders Carlsson  <andersca@apple.com>
    216
  • trunk/Source/WebCore/html/HTMLSelectElement.cpp

    r105386 r106318  
    768768    if (optionIsSelected)
    769769        selectOption(option->index());
     770    else if (!usesMenuList())
     771        selectOption(-1);
    770772    else
    771         selectOption(m_multiple ? -1 : nextSelectableListIndex(-1));
     773        selectOption(nextSelectableListIndex(-1));
    772774}
    773775
Note: See TracChangeset for help on using the changeset viewer.