Changeset 73732 in webkit


Ignore:
Timestamp:
Dec 10, 2010 8:50:33 AM (13 years ago)
Author:
mario@webkit.org
Message:

2010-12-10 Mario Sanchez Prada <msanchez@igalia.com>

Reviewed by Martin Robinson.

[GTK] AX: implement isEnabled in DRT
https://bugs.webkit.org/show_bug.cgi?id=50814

Unskip passing accessibility/aria-disabled.html test.

  • platform/gtk/Skipped: Unskip test.

2010-12-10 Mario Sanchez Prada <msanchez@igalia.com>

Reviewed by Martin Robinson.

[GTK] AX: implement isEnabled in DRT
https://bugs.webkit.org/show_bug.cgi?id=50814

Implement AccessibilityUIElement::isEnabled() for GTK.

  • DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp: (checkElementState): New function to refactor common code. (AccessibilityUIElement::isEnabled): Implement this by checking the current state of the AtkObject. (AccessibilityUIElement::isSelected): Use the new checkElementState function.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r73725 r73732  
     12010-12-10  Mario Sanchez Prada  <msanchez@igalia.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GTK] AX: implement isEnabled in DRT
     6        https://bugs.webkit.org/show_bug.cgi?id=50814
     7
     8        Unskip passing accessibility/aria-disabled.html test.
     9
     10        * platform/gtk/Skipped: Unskip test.
     11
    1122010-12-10  Csaba Osztrogonác  <ossy@webkit.org>
    213
  • trunk/LayoutTests/platform/gtk/Skipped

    r73721 r73732  
    5757#   Tests failing
    5858accessibility/aria-combobox.html
    59 accessibility/aria-disabled.html
    6059accessibility/ellipsis-text.html
    6160accessibility/aria-help.html
  • trunk/WebKitTools/ChangeLog

    r73716 r73732  
     12010-12-10  Mario Sanchez Prada  <msanchez@igalia.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GTK] AX: implement isEnabled in DRT
     6        https://bugs.webkit.org/show_bug.cgi?id=50814
     7
     8        Implement AccessibilityUIElement::isEnabled() for GTK.
     9
     10        * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
     11        (checkElementState): New function to refactor common code.
     12        (AccessibilityUIElement::isEnabled): Implement this by checking
     13        the current state of the AtkObject.
     14        (AccessibilityUIElement::isSelected): Use the new
     15        checkElementState function.
     16
    1172010-12-10  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
    218
  • trunk/WebKitTools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp

    r72963 r73732  
    372372}
    373373
     374static bool checkElementState(PlatformUIElement element, AtkStateType stateType)
     375{
     376    if (!ATK_IS_OBJECT(element))
     377         return false;
     378
     379    PlatformRefPtr<AtkStateSet> stateSet = adoptPlatformRef(atk_object_ref_state_set(ATK_OBJECT(element)));
     380    return atk_state_set_contains_state(stateSet.get(), stateType);
     381}
     382
    374383bool AccessibilityUIElement::isEnabled()
    375384{
    376     // FIXME: implement
    377     return false;
    378 }
    379 
     385    return checkElementState(m_element, ATK_STATE_ENABLED);
     386}
    380387
    381388int AccessibilityUIElement::insertionPointLineNumber()
     
    399406bool AccessibilityUIElement::isSelected() const
    400407{
    401     if (!ATK_IS_OBJECT(m_element))
    402         return false;
    403 
    404     PlatformRefPtr<AtkStateSet> stateSet = adoptPlatformRef(atk_object_ref_state_set(ATK_OBJECT(m_element)));
    405     gboolean isSelected = atk_state_set_contains_state(stateSet.get(), ATK_STATE_SELECTED);
    406 
    407     return isSelected;
     408    return checkElementState(m_element, ATK_STATE_SELECTED);
    408409}
    409410
Note: See TracChangeset for help on using the changeset viewer.