Bug 628922 fix Solaris build - layout should use cached nsIAccessibilityService, r=roc, a=roc
authorAlexander Surkov <surkov.alexander@gmail.com>
Fri, 28 Jan 2011 16:42:14 +0800
changeset 61515 42ff81cddcec3b20d6b5b741bbcacb9b24c25b6c
parent 61514 102d318965db65fc68ee4c14640b80a2039cd7cc
child 61516 95a9192221ea7956ba1f26d24f5462007e860936
push idunknown
push userunknown
push dateunknown
reviewersroc, roc
bugs628922
milestone2.0b11pre
Bug 628922 fix Solaris build - layout should use cached nsIAccessibilityService, r=roc, a=roc
layout/base/nsPresShell.cpp
--- a/layout/base/nsPresShell.cpp
+++ b/layout/base/nsPresShell.cpp
@@ -9258,17 +9258,17 @@ nsAccessibilityService*
 nsIPresShell::AccService()
 {
 #ifdef MOZ_ENABLE_LIBXUL
   return GetAccService();
 #else
   if (gIsAccessibilityActive) {
     nsCOMPtr<nsIAccessibilityService> srv =
       do_GetService("@mozilla.org/accessibilityService;1");
-    return static_cast<nsAccessibilityService*>(srv);
+    return static_cast<nsAccessibilityService*>(srv.get());
   }
   return nsnull;
 #endif
 }
 #endif
 
 void nsIPresShell::InitializeStatics()
 {