bug 822664 - follow up remove another use of GetDocAccessibleFromcache() r=bustage
authorTrevor Saunders <trev.saunders@gmail.com>
Fri, 28 Dec 2012 11:48:21 -0500
changeset 126266 f301d0d6f54000d57795d4f0a90e07f565ea4985
parent 126265 29ce28a490c94e3c2bc4bb74674ed2087dab80aa
child 126267 d924c6aa0a8fa538a5cc5803b3e1060912aae4b4
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs822664
milestone20.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 822664 - follow up remove another use of GetDocAccessibleFromcache() r=bustage
accessible/src/windows/sdn/sdnAccessible-inl.h
--- a/accessible/src/windows/sdn/sdnAccessible-inl.h
+++ b/accessible/src/windows/sdn/sdnAccessible-inl.h
@@ -13,19 +13,17 @@
 #include "nsAccessibilityService.h"
 
 namespace mozilla {
 namespace a11y {
 
 inline DocAccessible*
 sdnAccessible::GetDocument() const
 {
-  DocManager* docMgr = GetAccService();
-  return docMgr ?
-    docMgr->GetDocAccessibleFromCache(mNode->OwnerDoc()) : nullptr;
+  return GetExistingDocAccessible(mNode->OwnerDoc());
 }
 
 inline Accessible*
 sdnAccessible::GetAccessible() const
 {
   DocAccessible* document = GetDocument();
   return document ? document->GetAccessible(mNode) : nullptr;
 }