зеркало из https://github.com/mozilla/gecko-dev.git
Bug 512518 - nsRegressionTester.cpp doesn't compile in an optimized build. r=dbaron
--HG-- extra : rebase_source : 4d5589283048473f7bd2ba514cf09eaae13ec97e
This commit is contained in:
Родитель
60ae41e157
Коммит
0607bf560b
|
@ -91,7 +91,10 @@ nsRegressionTester::DumpFrameModel(nsIDOMWindow *aWindowToDump, nsILocalFile *aD
|
|||
PRBool stillLoading;
|
||||
|
||||
*aResult = DUMP_RESULT_ERROR;
|
||||
|
||||
|
||||
#ifndef DEBUG
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
#else
|
||||
nsCOMPtr<nsIDocShell> docShell;
|
||||
rv = GetDocShellFromWindow(aWindowToDump, getter_AddRefs(docShell));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
@ -133,6 +136,7 @@ nsRegressionTester::DumpFrameModel(nsIDOMWindow *aWindowToDump, nsILocalFile *aD
|
|||
fclose(fp);
|
||||
*aResult = DUMP_RESULT_COMPLETED;
|
||||
return NS_OK;
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче