Changeset 43899 in webkit


Ignore:
Timestamp:
May 20, 2009 4:16:01 AM (15 years ago)
Author:
jmalonzo@webkit.org
Message:

2009-05-20 Jan Michael Alonzo <jmalonzo@webkit.org>

Reviewed by Xan Lopez.

[GTK] Expose password field with role of PASSWORD_TEXT
https://bugs.webkit.org/show_bug.cgi?id=25682

Check if input type is a password field and return
ATK_ROLE_PASSWORD_TEXT if it is.

  • accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r43898 r43899  
     12009-05-20  Jan Michael Alonzo  <jmalonzo@webkit.org>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] Expose password field with role of PASSWORD_TEXT
     6        https://bugs.webkit.org/show_bug.cgi?id=25682
     7
     8        Check if input type is a password field and return
     9        ATK_ROLE_PASSWORD_TEXT if it is.
     10
     11        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
     12
    1132009-05-20  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
    214
  • trunk/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp

    r43833 r43899  
    266266static AtkRole webkit_accessible_get_role(AtkObject* object)
    267267{
    268     return atkRole(core(object)->roleValue());
     268    AccessibilityObject* AXObject = core(object);
     269
     270    if (!AXObject)
     271        return ATK_ROLE_UNKNOWN;
     272
     273    // Note: Why doesn't WebCore have a password field for this
     274    if (AXObject->isPasswordField())
     275        return ATK_ROLE_PASSWORD_TEXT;
     276
     277    return atkRole(AXObject->roleValue());
    269278}
    270279
Note: See TracChangeset for help on using the changeset viewer.