Changeset 71317 in webkit


Ignore:
Timestamp:
Nov 4, 2010 2:59:46 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-11-04 Chris Guillory <chris.guillory@google.com>

Reviewed by Chris Fleizach.

Ignore static text children of text field controls in the accessibility tree.
https://bugs.webkit.org/show_bug.cgi?id=48944

  • accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r71316 r71317  
     12010-11-04  Chris Guillory  <chris.guillory@google.com>
     2
     3        Reviewed by Chris Fleizach.
     4
     5        Ignore static text children of text field controls in the accessibility tree.
     6        https://bugs.webkit.org/show_bug.cgi?id=48944
     7
     8        * accessibility/AccessibilityRenderObject.cpp:
     9        (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
     10
    1112010-11-04  Erik Arvidsson  <arv@chromium.org>
    212
  • trunk/WebCore/accessibility/AccessibilityRenderObject.cpp

    r70945 r71317  
    17741774        if (m_renderer->isBR() || !renderText->firstTextBox())
    17751775            return true;
    1776        
     1776
     1777        // static text beneath TextControls is reported along with the text control text so it's ignored.
     1778        for (AccessibilityObject* parent = parentObject(); parent; parent = parent->parentObject()) {
     1779            if (parent->roleValue() == TextFieldRole)
     1780                return true;
     1781        }
     1782
    17771783        // text elements that are just empty whitespace should not be returned
    17781784        return renderText->text()->containsOnlyWhitespace();
Note: See TracChangeset for help on using the changeset viewer.