Changeset 139091 in webkit


Ignore:
Timestamp:
Jan 8, 2013, 11:52:53 AM (12 years ago)
Author:
Chris Fleizach
Message:

AX: native popup buttons should not use textUnderElement for their title
https://bugs.webkit.org/show_bug.cgi?id=106349

Reviewed by Ryosuke Niwa.

Native popup buttons (<select> elements) were calculating its title based on the text
under the element. When Bug 103794 introduced a more complete way of getting render text,
it causes popup buttons to start returning a title.
The fix is that we should not be calculating a title for a native popup button from its children.

Existing tests cover this functionality. This will fix a failing test.

  • accessibility/AccessibilityNodeObject.cpp:

(WebCore::AccessibilityNodeObject::visibleText):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139089 r139091  
     12013-01-08  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: native popup buttons should not use textUnderElement for their title
     4        https://bugs.webkit.org/show_bug.cgi?id=106349
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Native popup buttons (<select> elements) were calculating its title based on the text
     9        under the element. When Bug 103794 introduced a more complete way of getting render text,
     10        it causes popup buttons to start returning a title.
     11        The fix is that we should not be calculating a title for a native popup button from its children.
     12
     13        Existing tests cover this functionality. This will fix a failing test.
     14
     15        * accessibility/AccessibilityNodeObject.cpp:
     16        (WebCore::AccessibilityNodeObject::visibleText):
     17
    1182013-01-08  Ojan Vafai  <ojan@chromium.org>
    219
  • trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp

    r137962 r139091  
    11931193    switch (roleValue()) {
    11941194    case PopUpButtonRole:
     1195        // Native popup buttons should not use their button children's text as a title. That value is retrieved through stringValue().
     1196        if (node->hasTagName(selectTag))
     1197            break;
    11951198    case ButtonRole:
    11961199    case ToggleButtonRole:
Note: See TracChangeset for help on using the changeset viewer.