[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.16-1409-g5afdf4d
eric at webkit.org
eric at webkit.org
Thu Dec 3 13:21:40 UTC 2009
The following commit has been merged in the webkit-1.1 branch:
commit 6f781852ec7badf93b4508c811c7d90b0835e933
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Oct 28 16:53:41 2009 +0000
2009-10-28 Joanmarie Diggs <joanmarie.diggs at gmail.com>
Reviewed by Jan Alonzo.
https://bugs.webkit.org/show_bug.cgi?id=25534
[GTK] Objects of ROLE_TABLE should implement the accessible table interface
Expose the table summary as the accessible description because there is no summary object.
* accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
(webkit_accessible_get_description):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50219 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index a4ae497..1e57101 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2009-10-28 Joanmarie Diggs <joanmarie.diggs at gmail.com>
+
+ Reviewed by Jan Alonzo.
+
+ https://bugs.webkit.org/show_bug.cgi?id=25534
+ [GTK] Objects of ROLE_TABLE should implement the accessible table interface
+
+ Expose the table summary as the accessible description because there is no summary object.
+
+ * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
+ (webkit_accessible_get_description):
+
2009-10-28 Steve Block <steveblock at google.com>
Reviewed by Eric Seidel.
diff --git a/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp b/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp
index 2321bf2..c958ad1 100644
--- a/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp
+++ b/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp
@@ -152,9 +152,19 @@ static const gchar* webkit_accessible_get_name(AtkObject* object)
static const gchar* webkit_accessible_get_description(AtkObject* object)
{
- // TODO: the Mozilla MSAA implementation prepends "Description: "
- // Should we do this too?
- return returnString(core(object)->accessibilityDescription());
+ AccessibilityObject* coreObject = core(object);
+
+ // atk_table_get_summary returns an AtkObject. We have no summary object, so expose summary here.
+ if (coreObject->roleValue() == TableRole && coreObject->ariaRoleAttribute() == UnknownRole) {
+ Node* node = static_cast<AccessibilityRenderObject*>(coreObject)->renderer()->node();
+ if (node && node->isHTMLElement()) {
+ String summary = static_cast<HTMLTableElement*>(node)->summary();
+ if (!summary.isEmpty())
+ return returnString(summary);
+ }
+ }
+
+ return returnString(coreObject->accessibilityDescription());
}
static void setAtkRelationSetFromCoreObject(AccessibilityObject* coreObject, AtkRelationSet* relationSet)
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list