зеркало из 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));
|
rv = NS_NewDocumentViewer(getter_AddRefs(docv));
|
||||||
if (NS_FAILED(rv))
|
if (NS_FAILED(rv))
|
||||||
break;
|
break;
|
||||||
docv->SetUAStyleSheet(gUAStyleSheet);
|
|
||||||
|
docv->SetUAStyleSheet(NS_STATIC_CAST(nsIStyleSheet*, gUAStyleSheet));
|
||||||
|
|
||||||
// Bind the document to the Content Viewer
|
// Bind the document to the Content Viewer
|
||||||
rv = docv->LoadStart(aDocument);
|
nsIContentViewer* cv = NS_STATIC_CAST(nsIContentViewer*, docv.get());
|
||||||
*aDocViewerResult = docv;
|
rv = cv->LoadStart(aDocument);
|
||||||
NS_IF_ADDREF(*aDocViewerResult);
|
NS_ADDREF(*aDocViewerResult = cv);
|
||||||
} while (PR_FALSE);
|
} while (PR_FALSE);
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
#include "nsIDocumentLoaderFactory.h"
|
#include "nsIDocumentLoaderFactory.h"
|
||||||
#include "nsIDocStreamLoaderFactory.h"
|
#include "nsIDocStreamLoaderFactory.h"
|
||||||
|
#include "nsIDocumentViewer.h"
|
||||||
|
#include "nsIDocument.h"
|
||||||
|
|
||||||
class nsICSSStyleSheet;
|
class nsICSSStyleSheet;
|
||||||
class nsIChannel;
|
class nsIChannel;
|
||||||
|
|
|
@ -271,12 +271,13 @@ nsContentDLF::CreateInstanceForDocument(nsISupports* aContainer,
|
||||||
rv = NS_NewDocumentViewer(getter_AddRefs(docv));
|
rv = NS_NewDocumentViewer(getter_AddRefs(docv));
|
||||||
if (NS_FAILED(rv))
|
if (NS_FAILED(rv))
|
||||||
break;
|
break;
|
||||||
docv->SetUAStyleSheet(gUAStyleSheet);
|
|
||||||
|
docv->SetUAStyleSheet(NS_STATIC_CAST(nsIStyleSheet*, gUAStyleSheet));
|
||||||
|
|
||||||
// Bind the document to the Content Viewer
|
// Bind the document to the Content Viewer
|
||||||
rv = docv->LoadStart(aDocument);
|
nsIContentViewer* cv = NS_STATIC_CAST(nsIContentViewer*, docv.get());
|
||||||
*aDocViewerResult = docv;
|
rv = cv->LoadStart(aDocument);
|
||||||
NS_IF_ADDREF(*aDocViewerResult);
|
NS_ADDREF(*aDocViewerResult = cv);
|
||||||
} while (PR_FALSE);
|
} while (PR_FALSE);
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
#include "nsIDocumentLoaderFactory.h"
|
#include "nsIDocumentLoaderFactory.h"
|
||||||
#include "nsIDocStreamLoaderFactory.h"
|
#include "nsIDocStreamLoaderFactory.h"
|
||||||
|
#include "nsIDocumentViewer.h"
|
||||||
|
#include "nsIDocument.h"
|
||||||
|
|
||||||
class nsICSSStyleSheet;
|
class nsICSSStyleSheet;
|
||||||
class nsIChannel;
|
class nsIChannel;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче