Bug 873453 - Implement IA2_RELATION_NODE_PARENT_OF, r=tbsaunde
authorZach (:xuku) <zach.xuku@gmail.com>
Thu, 23 May 2013 14:13:16 +0900
changeset 132727 2a4461b9480b255ac070df6d161cec3cf9952bbd
parent 132726 7ec8a1e24dd6cc838684a1c0e1f57379014e373c
child 132728 ec36b8eeb2e75fc8046109c8ac5861652e8d1406
push id24712
push useremorley@mozilla.com
push dateThu, 23 May 2013 11:43:28 +0000
treeherdermozilla-central@8eebe35aae63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs873453
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 873453 - Implement IA2_RELATION_NODE_PARENT_OF, r=tbsaunde
accessible/src/windows/ia2/ia2AccessibleRelation.cpp
accessible/src/windows/ia2/ia2AccessibleRelation.h
--- a/accessible/src/windows/ia2/ia2AccessibleRelation.cpp
+++ b/accessible/src/windows/ia2/ia2AccessibleRelation.cpp
@@ -104,16 +104,19 @@ ia2AccessibleRelation::get_relationType(
       *aRelationType = ::SysAllocString(IA2_RELATION_LABELED_BY);
       break;
     case nsIAccessibleRelation::RELATION_MEMBER_OF:
       *aRelationType = ::SysAllocString(IA2_RELATION_MEMBER_OF);
       break;
     case nsIAccessibleRelation::RELATION_NODE_CHILD_OF:
       *aRelationType = ::SysAllocString(IA2_RELATION_NODE_CHILD_OF);
       break;
+    case nsIAccessibleRelation::RELATION_NODE_PARENT_OF:
+      *aRelationType = ::SysAllocString(IA2_RELATION_NODE_PARENT_OF);
+      break;
     case nsIAccessibleRelation::RELATION_PARENT_WINDOW_OF:
       *aRelationType = ::SysAllocString(IA2_RELATION_PARENT_WINDOW_OF);
       break;
     case nsIAccessibleRelation::RELATION_POPUP_FOR:
       *aRelationType = ::SysAllocString(IA2_RELATION_POPUP_FOR);
       break;
     case nsIAccessibleRelation::RELATION_SUBWINDOW_OF:
       *aRelationType = ::SysAllocString(IA2_RELATION_SUBWINDOW_OF);
--- a/accessible/src/windows/ia2/ia2AccessibleRelation.h
+++ b/accessible/src/windows/ia2/ia2AccessibleRelation.h
@@ -66,16 +66,17 @@ private:
  * Relations exposed to IAccessible2.
  */
 static const uint32_t sRelationTypesForIA2[] = {
   nsIAccessibleRelation::RELATION_LABELLED_BY,
   nsIAccessibleRelation::RELATION_LABEL_FOR,
   nsIAccessibleRelation::RELATION_DESCRIBED_BY,
   nsIAccessibleRelation::RELATION_DESCRIPTION_FOR,
   nsIAccessibleRelation::RELATION_NODE_CHILD_OF,
+  nsIAccessibleRelation::RELATION_NODE_PARENT_OF,
   nsIAccessibleRelation::RELATION_CONTROLLED_BY,
   nsIAccessibleRelation::RELATION_CONTROLLER_FOR,
   nsIAccessibleRelation::RELATION_FLOWS_TO,
   nsIAccessibleRelation::RELATION_FLOWS_FROM,
   nsIAccessibleRelation::RELATION_MEMBER_OF,
   nsIAccessibleRelation::RELATION_SUBWINDOW_OF,
   nsIAccessibleRelation::RELATION_EMBEDS,
   nsIAccessibleRelation::RELATION_EMBEDDED_BY,