[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.16-1409-g5afdf4d
xan at webkit.org
xan at webkit.org
Thu Dec 3 13:20:13 UTC 2009
The following commit has been merged in the webkit-1.1 branch:
commit dcc7b61df07021723916b82a5fb9e61c3c59dbbf
Author: xan at webkit.org <xan at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Oct 27 09:20:21 2009 +0000
2009-10-26 Xan Lopez <xlopez at igalia.com>
Reviewed by Gustavo Noronha.
https://bugs.webkit.org/show_bug.cgi?id=27011
[Gtk] Implement support for get_index_in_parent
Implement atk_object_get_index_in_parent.
* accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
(webkit_accessible_get_index_in_parent):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50134 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 70473e4..087433f 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2009-10-26 Xan Lopez <xlopez at igalia.com>
+
+ Reviewed by Gustavo Noronha.
+
+ https://bugs.webkit.org/show_bug.cgi?id=27011
+ [Gtk] Implement support for get_index_in_parent
+
+ Implement atk_object_get_index_in_parent.
+
+ * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
+ (webkit_accessible_get_index_in_parent):
+
2009-10-27 Eric Seidel <eric at webkit.org>
No review, rolling out r50131.
diff --git a/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp b/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp
index e2824dd..992b2ee 100644
--- a/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp
+++ b/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp
@@ -219,8 +219,18 @@ static AtkObject* webkit_accessible_ref_child(AtkObject* object, gint index)
static gint webkit_accessible_get_index_in_parent(AtkObject* object)
{
- // FIXME: This needs to be implemented.
- notImplemented();
+ AccessibilityObject* coreObject = core(object);
+ AccessibilityObject* parent = coreObject->parentObjectUnignored();
+
+ g_return_val_if_fail(parent, 0);
+
+ AccessibilityObject::AccessibilityChildrenVector children = parent->children();
+ unsigned count = children.size();
+ for (unsigned i = 0; i < count; ++i) {
+ if (children[i] == coreObject)
+ return i;
+ }
+
return 0;
}
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list