Bug 672474 - followup to use GetExtantDoc(); r=ms2ger
authorTim Taubert <ttaubert@mozilla.com>
Mon, 18 Feb 2013 11:07:24 +0100
changeset 122274 02524d3d9d8acbcc524da38ba21590905424d0dd
parent 122184 de56ae61946d17ca9015dc2ab817bc0da0ff276b
child 122275 c080abd4eb7ad97826149d053aa0b2efb9646249
push id24328
push userttaubert@mozilla.com
push dateTue, 19 Feb 2013 09:39:45 +0000
treeherdermozilla-central@3f0f2fc4bd0f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersms2ger
bugs672474
milestone21.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 672474 - followup to use GetExtantDoc(); r=ms2ger
dom/base/nsDOMWindowUtils.cpp
--- a/dom/base/nsDOMWindowUtils.cpp
+++ b/dom/base/nsDOMWindowUtils.cpp
@@ -1446,17 +1446,17 @@ nsDOMWindowUtils::GetScrollbarWidth(bool
     return NS_ERROR_DOM_SECURITY_ERR;
   }
 
   *aResult = 0;
 
   nsCOMPtr<nsPIDOMWindow> window = do_QueryReferent(mWindow);
   NS_ENSURE_STATE(window);
 
-  nsCOMPtr<nsIDocument> doc(do_QueryInterface(window->GetExtantDocument()));
+  nsCOMPtr<nsIDocument> doc = window->GetExtantDoc();
   NS_ENSURE_STATE(doc);
 
   if (aFlushLayout) {
     doc->FlushPendingNotifications(Flush_Layout);
   }
 
   nsIPresShell* presShell = doc->GetShell();
   NS_ENSURE_TRUE(presShell, NS_ERROR_NOT_AVAILABLE);