зеркало из https://github.com/mozilla/gecko-dev.git
Removed QueryCapability to reflect changes in nsIContentViewerContainer API. Casting change when calling nsIContentViewer::SetContainer. r=pavlov
This commit is contained in:
Родитель
870636b2e2
Коммит
9eb64e3cf9
|
@ -174,7 +174,6 @@ public:
|
|||
NS_DECL_NSIINTERFACEREQUESTOR
|
||||
|
||||
// nsIContentViewerContainer
|
||||
NS_IMETHOD QueryCapability(const nsIID &aIID, void** aResult);
|
||||
NS_IMETHOD Embed(nsIContentViewer* aDocViewer,
|
||||
const char* aCommand,
|
||||
nsISupports* aExtraInfo);
|
||||
|
@ -805,12 +804,6 @@ nsWebShell::GetInterface(const nsIID &aIID, void** aInstancePtr)
|
|||
return NS_NOINTERFACE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWebShell::QueryCapability(const nsIID &aIID, void** aInstancePtr)
|
||||
{
|
||||
return GetInterface(aIID, aInstancePtr);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWebShell::Embed(nsIContentViewer* aContentViewer,
|
||||
const char* aCommand,
|
||||
|
@ -1872,7 +1865,7 @@ nsWebShell::SetDocument(nsIDOMDocument *aDOMDoc, nsIDOMElement *aRootNode)
|
|||
NS_ERROR_FAILURE);
|
||||
|
||||
// (2) Feed the webshell to the content viewer
|
||||
NS_ENSURE_SUCCESS(documentViewer->SetContainer(this), NS_ERROR_FAILURE);
|
||||
NS_ENSURE_SUCCESS(documentViewer->SetContainer((nsIWebShell*)this), NS_ERROR_FAILURE);
|
||||
|
||||
// (3) Tell the content viewer container to embed the content viewer.
|
||||
// (This step causes everything to be set up for an initial flow.)
|
||||
|
|
|
@ -174,7 +174,6 @@ public:
|
|||
NS_DECL_NSIINTERFACEREQUESTOR
|
||||
|
||||
// nsIContentViewerContainer
|
||||
NS_IMETHOD QueryCapability(const nsIID &aIID, void** aResult);
|
||||
NS_IMETHOD Embed(nsIContentViewer* aDocViewer,
|
||||
const char* aCommand,
|
||||
nsISupports* aExtraInfo);
|
||||
|
@ -805,12 +804,6 @@ nsWebShell::GetInterface(const nsIID &aIID, void** aInstancePtr)
|
|||
return NS_NOINTERFACE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWebShell::QueryCapability(const nsIID &aIID, void** aInstancePtr)
|
||||
{
|
||||
return GetInterface(aIID, aInstancePtr);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWebShell::Embed(nsIContentViewer* aContentViewer,
|
||||
const char* aCommand,
|
||||
|
@ -1872,7 +1865,7 @@ nsWebShell::SetDocument(nsIDOMDocument *aDOMDoc, nsIDOMElement *aRootNode)
|
|||
NS_ERROR_FAILURE);
|
||||
|
||||
// (2) Feed the webshell to the content viewer
|
||||
NS_ENSURE_SUCCESS(documentViewer->SetContainer(this), NS_ERROR_FAILURE);
|
||||
NS_ENSURE_SUCCESS(documentViewer->SetContainer((nsIWebShell*)this), NS_ERROR_FAILURE);
|
||||
|
||||
// (3) Tell the content viewer container to embed the content viewer.
|
||||
// (This step causes everything to be set up for an initial flow.)
|
||||
|
|
Загрузка…
Ссылка в новой задаче