зеркало из https://github.com/mozilla/gecko-dev.git
Fix gcc-2.7.2.3 bustage.
This commit is contained in:
Родитель
49c0102cdf
Коммит
db44012fc4
|
@ -271,12 +271,13 @@ nsContentDLF::CreateInstanceForDocument(nsISupports* aContainer,
|
|||
rv = NS_NewDocumentViewer(getter_AddRefs(docv));
|
||||
if (NS_FAILED(rv))
|
||||
break;
|
||||
docv->SetUAStyleSheet(gUAStyleSheet);
|
||||
|
||||
docv->SetUAStyleSheet(NS_STATIC_CAST(nsIStyleSheet*, gUAStyleSheet));
|
||||
|
||||
// Bind the document to the Content Viewer
|
||||
rv = docv->LoadStart(aDocument);
|
||||
*aDocViewerResult = docv;
|
||||
NS_IF_ADDREF(*aDocViewerResult);
|
||||
nsIContentViewer* cv = NS_STATIC_CAST(nsIContentViewer*, docv.get());
|
||||
rv = cv->LoadStart(aDocument);
|
||||
NS_ADDREF(*aDocViewerResult = cv);
|
||||
} while (PR_FALSE);
|
||||
|
||||
return rv;
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include "nsIDocumentLoaderFactory.h"
|
||||
#include "nsIDocStreamLoaderFactory.h"
|
||||
#include "nsIDocumentViewer.h"
|
||||
#include "nsIDocument.h"
|
||||
|
||||
class nsICSSStyleSheet;
|
||||
class nsIChannel;
|
||||
|
|
|
@ -271,12 +271,13 @@ nsContentDLF::CreateInstanceForDocument(nsISupports* aContainer,
|
|||
rv = NS_NewDocumentViewer(getter_AddRefs(docv));
|
||||
if (NS_FAILED(rv))
|
||||
break;
|
||||
docv->SetUAStyleSheet(gUAStyleSheet);
|
||||
|
||||
docv->SetUAStyleSheet(NS_STATIC_CAST(nsIStyleSheet*, gUAStyleSheet));
|
||||
|
||||
// Bind the document to the Content Viewer
|
||||
rv = docv->LoadStart(aDocument);
|
||||
*aDocViewerResult = docv;
|
||||
NS_IF_ADDREF(*aDocViewerResult);
|
||||
nsIContentViewer* cv = NS_STATIC_CAST(nsIContentViewer*, docv.get());
|
||||
rv = cv->LoadStart(aDocument);
|
||||
NS_ADDREF(*aDocViewerResult = cv);
|
||||
} while (PR_FALSE);
|
||||
|
||||
return rv;
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include "nsIDocumentLoaderFactory.h"
|
||||
#include "nsIDocStreamLoaderFactory.h"
|
||||
#include "nsIDocumentViewer.h"
|
||||
#include "nsIDocument.h"
|
||||
|
||||
class nsICSSStyleSheet;
|
||||
class nsIChannel;
|
||||
|
|
Загрузка…
Ссылка в новой задаче