X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=WebCore%2Faccessibility%2FAccessibilityRenderObject.cpp;h=ef42272c18eb8c9857cf1c012a5515708a16498f;hb=28040489d744e0c5d475a88663056c9040ed5320;hp=efa2036807e0d0b385d119144cd701498d4d967b;hpb=eff9be92c41913c92fb1d3b7983c071f3e718678;p=android-x86%2Fexternal-webkit.git diff --git a/WebCore/accessibility/AccessibilityRenderObject.cpp b/WebCore/accessibility/AccessibilityRenderObject.cpp index efa203680..ef42272c1 100644 --- a/WebCore/accessibility/AccessibilityRenderObject.cpp +++ b/WebCore/accessibility/AccessibilityRenderObject.cpp @@ -1773,7 +1773,13 @@ bool AccessibilityRenderObject::accessibilityIsIgnored() const RenderText* renderText = toRenderText(m_renderer); if (m_renderer->isBR() || !renderText->firstTextBox()) return true; - + + // static text beneath TextControls is reported along with the text control text so it's ignored. + for (AccessibilityObject* parent = parentObject(); parent; parent = parent->parentObject()) { + if (parent->roleValue() == TextFieldRole) + return true; + } + // text elements that are just empty whitespace should not be returned return renderText->text()->containsOnlyWhitespace(); }