Changeset 148210 in webkit


Ignore:
Timestamp:
Apr 11, 2013 9:38:32 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[Gtk] Combo boxes should be arrow-out-of-able similar to list boxes when caret-browsing is enabled.
https://bugs.webkit.org/show_bug.cgi?id=76796

Patch by Brian Holt <brian.holt@samsung.com> on 2013-04-11
Reviewed by Chris Fleizach.

Source/WebCore:

When using caret-browsing with the right and left arrows, the
behaviour of menuLists should be the same as listBoxes. This means
not default-handling the event and passing it up the stack instead.

  • html/HTMLSelectElement.cpp:

(WebCore::HTMLSelectElement::menuListDefaultEventHandler):

Tools:

Make the Gtk window for the DRT a toplevel so that it gets the
focus from the window manager when the test starts.

  • DumpRenderTree/gtk/DumpRenderTree.cpp:

(main):

LayoutTests:

Adding a new test to verify that it is possible to arrow out of
combo boxes when caret browsing is enabled. Updated failing tests
to reflect changed accessibility events in the DRT.

  • platform/gtk/accessibility/aria-slider-required-attributes-expected.txt: Updated.
  • platform/gtk/accessibility/caret-browsing-select-focus-expected.txt: Added.
  • platform/gtk/accessibility/caret-browsing-select-focus.html: Added.
  • platform/gtk/accessibility/combo-box-collapsed-selection-changed-expected.txt: Updated.
Location:
trunk
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r148205 r148210  
     12013-04-11  Brian Holt  <brian.holt@samsung.com>
     2
     3        [Gtk] Combo boxes should be arrow-out-of-able similar to list boxes when caret-browsing is enabled.
     4        https://bugs.webkit.org/show_bug.cgi?id=76796
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Adding a new test to verify that it is possible to arrow out of
     9        combo boxes when caret browsing is enabled. Updated failing tests
     10        to reflect changed accessibility events in the DRT.
     11
     12        * platform/gtk/accessibility/aria-slider-required-attributes-expected.txt: Updated.
     13        * platform/gtk/accessibility/caret-browsing-select-focus-expected.txt: Added.
     14        * platform/gtk/accessibility/caret-browsing-select-focus.html: Added.
     15        * platform/gtk/accessibility/combo-box-collapsed-selection-changed-expected.txt: Updated.
     16
    1172013-04-11  Dirk Schulze  <krit@webkit.org>
    218
  • trunk/LayoutTests/platform/gtk/accessibility/aria-slider-required-attributes-expected.txt

    r131674 r148210  
    1 Accessibility object emitted "focus-event = 1" / Name: "(No name)" / Role: 50
    2 Accessibility object emitted "state-change:focused = 1" / Name: "(No name)" / Role: 50
    31Accessibility object emitted "state-change:busy = 0" / Name: "(No name)" / Role: 80
    42Accessibility object emitted "property-change:accessible-value" / Name: "(No name)" / Role: 50
  • trunk/LayoutTests/platform/gtk/accessibility/combo-box-collapsed-selection-changed-expected.txt

    r101951 r148210  
    1 Accessibility object emitted "focus-event = 1" / Name: "foo" / Role: 11
    2 Accessibility object emitted "state-change:focused = 1" / Name: "foo" / Role: 11
    31Accessibility object emitted "focus-event = 1" / Name: "bar" / Role: 11
    42Accessibility object emitted "state-change:focused = 1" / Name: "bar" / Role: 11
  • trunk/Source/WebCore/ChangeLog

    r148209 r148210  
     12013-04-11  Brian Holt  <brian.holt@samsung.com>
     2
     3        [Gtk] Combo boxes should be arrow-out-of-able similar to list boxes when caret-browsing is enabled.
     4        https://bugs.webkit.org/show_bug.cgi?id=76796
     5
     6        Reviewed by Chris Fleizach.
     7
     8        When using caret-browsing with the right and left arrows, the
     9        behaviour of menuLists should be the same as listBoxes. This means
     10        not default-handling the event and passing it up the stack instead.
     11
     12        * html/HTMLSelectElement.cpp:
     13        (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
     14
    1152013-04-11  Alexey Proskuryakov  <ap@apple.com>
    216
  • trunk/Source/WebCore/html/HTMLSelectElement.cpp

    r147888 r148210  
    5353#include "RenderTheme.h"
    5454#include "ScriptEventListener.h"
     55#include "Settings.h"
    5556#include "SpatialNavigation.h"
    5657#include <wtf/text/StringBuilder.h>
     
    11211122        const Vector<HTMLElement*>& listItems = this->listItems();
    11221123        int listIndex = optionToListIndex(selectedIndex());
     1124
     1125        // When using caret browsing, we want to be able to move the focus
     1126        // out of the select element when user hits a left or right arrow key.
     1127        const Frame* frame = document()->frame();
     1128        if (frame && frame->settings() && frame->settings()->caretBrowsingEnabled()) {
     1129            if (keyIdentifier == "Left" || keyIdentifier == "Right")
     1130                return;
     1131        }
    11231132
    11241133        if (keyIdentifier == "Down" || keyIdentifier == "Right")
  • trunk/Tools/ChangeLog

    r148208 r148210  
     12013-04-11  Brian Holt  <brian.holt@samsung.com>
     2
     3        [Gtk] Combo boxes should be arrow-out-of-able similar to list boxes when caret-browsing is enabled.
     4        https://bugs.webkit.org/show_bug.cgi?id=76796
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Make the Gtk window for the DRT a toplevel so that it gets the
     9        focus from the window manager when the test starts.
     10
     11        * DumpRenderTree/gtk/DumpRenderTree.cpp:
     12        (main):
     13
    1142013-04-04  Allan Sandfeld Jensen  <allan.jensen@digia.com>
    215
  • trunk/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp

    r145849 r148210  
    14851485    initializeFonts();
    14861486
    1487     window = gtk_window_new(GTK_WINDOW_POPUP);
     1487    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    14881488#ifdef GTK_API_VERSION_2
    14891489    container = gtk_hbox_new(TRUE, 0);
Note: See TracChangeset for help on using the changeset viewer.