diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index e7400b1e255..0d75c3e9fa9 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -83,7 +83,6 @@ typedef unsigned long HMTX; #include "nsIDOMRange.h" #include "nsIURIContentListener.h" #include "nsIDOMDocument.h" -#include "nsTimer.h" #include "nsIBaseWindow.h" #include "nsIDocShell.h" #include "nsIDocShellTreeItem.h" @@ -319,8 +318,6 @@ protected: const char* aCommand, nsIStreamListener** aResult); - MOZ_TIMER_DECLARE(mTotalTime) - #ifdef DETECT_WEBSHELL_LEAKS private: // We're counting the number of |nsWebShells| to help find leaks @@ -1132,13 +1129,6 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader, if(loader != mDocLoader) return NS_OK; -#ifdef MOZ_PERF_METRICS - MOZ_TIMER_DEBUGLOG(("Stop: nsWebShell::OnEndDocumentLoad(), this=%p\n", this)); - MOZ_TIMER_STOP(mTotalTime); - MOZ_TIMER_LOG(("Total (Layout + Page Load) Time (webshell=%p): ", this)); - MOZ_TIMER_PRINT(mTotalTime); -#endif - nsresult rv = NS_ERROR_FAILURE; if(!channel) return NS_ERROR_NULL_POINTER; @@ -1367,6 +1357,7 @@ nsWebShell::OnStartURLLoad(nsIDocumentLoader* loader, { mDocLoaderObserver->OnStartURLLoad(mDocLoader, channel); } + return NS_OK; } diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index e7400b1e255..0d75c3e9fa9 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -83,7 +83,6 @@ typedef unsigned long HMTX; #include "nsIDOMRange.h" #include "nsIURIContentListener.h" #include "nsIDOMDocument.h" -#include "nsTimer.h" #include "nsIBaseWindow.h" #include "nsIDocShell.h" #include "nsIDocShellTreeItem.h" @@ -319,8 +318,6 @@ protected: const char* aCommand, nsIStreamListener** aResult); - MOZ_TIMER_DECLARE(mTotalTime) - #ifdef DETECT_WEBSHELL_LEAKS private: // We're counting the number of |nsWebShells| to help find leaks @@ -1132,13 +1129,6 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader, if(loader != mDocLoader) return NS_OK; -#ifdef MOZ_PERF_METRICS - MOZ_TIMER_DEBUGLOG(("Stop: nsWebShell::OnEndDocumentLoad(), this=%p\n", this)); - MOZ_TIMER_STOP(mTotalTime); - MOZ_TIMER_LOG(("Total (Layout + Page Load) Time (webshell=%p): ", this)); - MOZ_TIMER_PRINT(mTotalTime); -#endif - nsresult rv = NS_ERROR_FAILURE; if(!channel) return NS_ERROR_NULL_POINTER; @@ -1367,6 +1357,7 @@ nsWebShell::OnStartURLLoad(nsIDocumentLoader* loader, { mDocLoaderObserver->OnStartURLLoad(mDocLoader, channel); } + return NS_OK; }