Bug 741709 - nsAccessibleWrap::get_accParent() shouldn't use do_QueryObject, r=tbsaunde
authorMark Capella <markcapella@twcny.rr.com>
Tue, 10 Apr 2012 14:55:18 +0900
changeset 94609 f483227d1cbef80513ac2e329a2bf30f235b3b33
parent 94608 8a4ef59d7490968c8a43c87ca6d96b39318306c5
child 94610 3fa30b0edd155100e511fc2bd05dda82fd4666a2
child 94613 bc8ce16a462d444af526cce5540f985c93242b91
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs741709
milestone14.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 741709 - nsAccessibleWrap::get_accParent() shouldn't use do_QueryObject, r=tbsaunde
accessible/src/msaa/nsAccessibleWrap.cpp
--- a/accessible/src/msaa/nsAccessibleWrap.cpp
+++ b/accessible/src/msaa/nsAccessibleWrap.cpp
@@ -165,17 +165,17 @@ STDMETHODIMP nsAccessibleWrap::QueryInte
 STDMETHODIMP nsAccessibleWrap::get_accParent( IDispatch __RPC_FAR *__RPC_FAR *ppdispParent)
 {
 __try {
   *ppdispParent = NULL;
 
   if (IsDefunct())
     return CO_E_OBJNOTCONNECTED;
 
-  nsRefPtr<nsDocAccessible> doc(do_QueryObject(this));
+  nsDocAccessible* doc = AsDoc();
   if (doc) {
     // Return window system accessible object for root document and tab document
     // accessibles.
     if (!doc->ParentDocument() ||
         nsWinUtils::IsWindowEmulationStarted() &&
         nsCoreUtils::IsTabDocument(doc->GetDocumentNode())) {
       HWND hwnd = static_cast<HWND>(doc->GetNativeWindow());
       if (hwnd && SUCCEEDED(::AccessibleObjectFromWindow(hwnd, OBJID_WINDOW,