[Gtk] No accessible caret-moved events found in certain content
https://bugs.webkit.org/show_bug.cgi?id=72811
Part of the bug was due to extraneous accessible objects resulting
from unignored inline and block spans.
Patch by Joanmarie Diggs <jdiggs@igalia.com> on 2012-09-01
Reviewed by Chris Fleizach.
Source/WebCore:
Test: platform/gtk/accessibility/spans.html
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::accessibilityIsIgnored): Ignore objects that have spanTag tag name.
* accessibility/gtk/AccessibilityObjectAtk.cpp:
(WebCore::AccessibilityObject::accessibilityPlatformIncludesObject): Ignore most anonymous blocks.
* accessibility/gtk/WebKitAccessibleWrapperAtk.cpp:
(roleIsTextType): Add ListItem to the roles which should implement AtkText.
LayoutTests:
Added new test, updated the results of one test to reflect the fix,
corrected a test with a mismatched element tag.
* platform/gtk/accessibility/aria-roles-unignored-expected.txt: Corrected results having fixed tag.
* platform/gtk/accessibility/aria-roles-unignored.html: Fixed mismatched element tag.
* platform/gtk/accessibility/media-element-expected.txt: Updated to reflect removal of extraneous object.
* platform/gtk/accessibility/spans-expected.txt: Added.
* platform/gtk/accessibility/spans.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
10 files changed