Skip to content
  • ddkilzer's avatar
    LayoutTests: · 59c66ce1
    ddkilzer authored
            Reviewed by Darin.
    
            - test for http://bugs.webkit.org/show_bug.cgi?id=13013
              REGRESSION: Selection box does not scroll to where the focus jumps when pressing an alphanumeric key
    
            * fast/forms/listbox-typeahead-scroll-expected.txt: Added.
            * fast/forms/listbox-typeahead-scroll.html: Added.
    
    WebCore:
    
            Reviewed by Darin.
    
            - fix http://bugs.webkit.org/show_bug.cgi?id=13013
              REGRESSION: Selection box does not scroll to where the focus jumps when pressing an alphanumeric key
    
            Test: fast/forms/listbox-typeahead-scroll.html
    
            * html/HTMLSelectElement.cpp:
            (WebCore::HTMLSelectElement::setSelectedIndex): Reordered to set the active selection's
            anchor and end before selecting the option, since the active selection is used to
            decide where to scroll when the selection is made.
            (WebCore::HTMLSelectElement::defaultEventHandler): Removed redundant check.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20099 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    59c66ce1