Changeset 84966 in webkit


Ignore:
Timestamp:
Apr 26, 2011 3:58:25 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-26 Mario Sanchez Prada <msanchez@igalia.com>

Reviewed by Eric Seidel.

[GTK] Implement isChecked in DRT
https://bugs.webkit.org/show_bug.cgi?id=59385

  • platform/gtk/Skipped: Unskip the layout test accessibility/aria-checkbox-checked.html.

2011-04-26 Mario Sanchez Prada <msanchez@igalia.com>

Reviewed by Eric Seidel.

[GTK] Implement isChecked in DRT
https://bugs.webkit.org/show_bug.cgi?id=59385

  • DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp: (AccessibilityUIElement::isChecked): Implemented.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r84964 r84966  
     12011-04-26  Mario Sanchez Prada  <msanchez@igalia.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [GTK] Implement isChecked in DRT
     6        https://bugs.webkit.org/show_bug.cgi?id=59385
     7
     8        * platform/gtk/Skipped: Unskip the layout test
     9        accessibility/aria-checkbox-checked.html.
     10
    1112011-04-26  Alejandro G. Castro  <alex@igalia.com>
    212
  • trunk/LayoutTests/platform/gtk/Skipped

    r84964 r84966  
    325325# TESTS FAILING
    326326###############################################################################
    327 accessibility/aria-checkbox-checked.html
    328327accessibility/aria-combobox.html
    329328accessibility/aria-help.html
  • trunk/Tools/ChangeLog

    r84965 r84966  
     12011-04-26  Mario Sanchez Prada  <msanchez@igalia.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [GTK] Implement isChecked in DRT
     6        https://bugs.webkit.org/show_bug.cgi?id=59385
     7
     8        * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
     9        (AccessibilityUIElement::isChecked): Implemented.
     10
    1112011-04-26  Alejandro G. Castro  <alex@igalia.com>
    212
  • trunk/Tools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp

    r83466 r84966  
    443443bool AccessibilityUIElement::isChecked() const
    444444{
    445     return intValue();
     445    if (!ATK_IS_OBJECT(m_element))
     446        return false;
     447
     448    GRefPtr<AtkStateSet> stateSet = adoptGRef(atk_object_ref_state_set(ATK_OBJECT(m_element)));
     449    gboolean isChecked = atk_state_set_contains_state(stateSet.get(), ATK_STATE_CHECKED);
     450
     451    return isChecked;
    446452}
    447453
Note: See TracChangeset for help on using the changeset viewer.