From f5433f4c6a8da3bd7ceff9e276bdbe8221afd822 Mon Sep 17 00:00:00 2001 From: "smfr%smfr.org" Date: Sun, 7 Aug 2005 15:49:15 +0000 Subject: [PATCH] Test backout of nsDocShell EnsureContentViewer() changes from bug 302962, to see impact on performance. git-svn-id: svn://10.0.0.236/trunk@177292 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 36ae7c4dfe8..000a3adb964 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -1251,9 +1251,14 @@ nsDocShell::GetPresContext(nsPresContext ** aPresContext) NS_ENSURE_ARG_POINTER(aPresContext); *aPresContext = nsnull; +#if 1 + if (!mContentViewer) + return NS_OK; +#else nsresult rv = EnsureContentViewer(); if (NS_FAILED(rv)) return rv; // we're probably being destroyed +#endif nsCOMPtr docv(do_QueryInterface(mContentViewer)); NS_ENSURE_TRUE(docv, NS_ERROR_NO_INTERFACE);