зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1293001 - Part 1: Change the BinaryName of nsIFrameLoaderOwner::frameLoader (which overloaded another virtual method) to FrameLoaderXPCOM, r=froydnj
MozReview-Commit-ID: Db3z2DP5qba
This commit is contained in:
Родитель
d6b8fc4152
Коммит
aa89e8fd55
|
@ -256,7 +256,7 @@ interface nsIFrameLoaderOwner : nsISupports
|
|||
/**
|
||||
* The frame loader owned by this nsIFrameLoaderOwner
|
||||
*/
|
||||
readonly attribute nsIFrameLoader frameLoader;
|
||||
[binaryname(FrameLoaderXPCOM)] readonly attribute nsIFrameLoader frameLoader;
|
||||
[noscript, notxpcom] alreadyAddRefed_nsFrameLoader GetFrameLoader();
|
||||
|
||||
/**
|
||||
|
|
|
@ -1235,7 +1235,7 @@ nsObjectLoadingContent::OnDataAvailable(nsIRequest *aRequest,
|
|||
|
||||
// nsIFrameLoaderOwner
|
||||
NS_IMETHODIMP
|
||||
nsObjectLoadingContent::GetFrameLoader(nsIFrameLoader** aFrameLoader)
|
||||
nsObjectLoadingContent::GetFrameLoaderXPCOM(nsIFrameLoader** aFrameLoader)
|
||||
{
|
||||
NS_IF_ADDREF(*aFrameLoader = mFrameLoader);
|
||||
return NS_OK;
|
||||
|
|
|
@ -301,8 +301,7 @@ BrowserElementParent::OpenWindowInProcess(nsPIDOMWindowOuter* aOpenerWindow,
|
|||
}
|
||||
|
||||
// Return popupFrameElement's window.
|
||||
nsCOMPtr<nsIFrameLoader> frameLoader;
|
||||
popupFrameElement->GetFrameLoader(getter_AddRefs(frameLoader));
|
||||
RefPtr<nsFrameLoader> frameLoader = popupFrameElement->GetFrameLoader();
|
||||
NS_ENSURE_TRUE(frameLoader, BrowserElementParent::OPEN_WINDOW_IGNORED);
|
||||
|
||||
nsCOMPtr<nsIDocShell> docshell;
|
||||
|
|
|
@ -174,7 +174,7 @@ nsGenericHTMLFrameElement::CreateRemoteFrameLoader(nsITabParent* aTabParent)
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsGenericHTMLFrameElement::GetFrameLoader(nsIFrameLoader **aFrameLoader)
|
||||
nsGenericHTMLFrameElement::GetFrameLoaderXPCOM(nsIFrameLoader **aFrameLoader)
|
||||
{
|
||||
NS_IF_ADDREF(*aFrameLoader = mFrameLoader);
|
||||
return NS_OK;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "nsContentUtils.h"
|
||||
#include "nsGlobalWindow.h"
|
||||
#include "nsIDocShell.h"
|
||||
#include "nsIFrameLoader.h"
|
||||
#include "nsFrameLoader.h"
|
||||
#include "nsIMutableArray.h"
|
||||
#include "nsINetAddr.h"
|
||||
#include "nsISocketTransport.h"
|
||||
|
@ -1366,9 +1366,8 @@ PresentationPresentingInfo::ResolvedCallback(JSContext* aCx,
|
|||
return;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIFrameLoader> frameLoader;
|
||||
rv = owner->GetFrameLoader(getter_AddRefs(frameLoader));
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
nsCOMPtr<nsIFrameLoader> frameLoader = owner->GetFrameLoader();
|
||||
if (NS_WARN_IF(!frameLoader)) {
|
||||
ReplyError(NS_ERROR_DOM_OPERATION_ERR);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1589,7 +1589,7 @@ nsXULElement::LoadSrc()
|
|||
}
|
||||
|
||||
nsresult
|
||||
nsXULElement::GetFrameLoader(nsIFrameLoader **aFrameLoader)
|
||||
nsXULElement::GetFrameLoaderXPCOM(nsIFrameLoader **aFrameLoader)
|
||||
{
|
||||
*aFrameLoader = GetFrameLoader().take();
|
||||
return NS_OK;
|
||||
|
|
|
@ -411,7 +411,7 @@ public:
|
|||
virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult) const override;
|
||||
virtual mozilla::EventStates IntrinsicState() const override;
|
||||
|
||||
nsresult GetFrameLoader(nsIFrameLoader** aFrameLoader);
|
||||
nsresult GetFrameLoaderXPCOM(nsIFrameLoader** aFrameLoader);
|
||||
nsresult GetParentApplication(mozIApplication** aApplication);
|
||||
nsresult SetIsPrerendered();
|
||||
|
||||
|
|
|
@ -1038,9 +1038,7 @@ nsSubDocumentFrame::FrameLoader()
|
|||
if (!mFrameLoader) {
|
||||
nsCOMPtr<nsIFrameLoaderOwner> loaderOwner = do_QueryInterface(content);
|
||||
if (loaderOwner) {
|
||||
nsCOMPtr<nsIFrameLoader> loader;
|
||||
loaderOwner->GetFrameLoader(getter_AddRefs(loader));
|
||||
mFrameLoader = static_cast<nsFrameLoader*>(loader.get());
|
||||
mFrameLoader = loaderOwner->GetFrameLoader();
|
||||
}
|
||||
}
|
||||
return mFrameLoader;
|
||||
|
|
Загрузка…
Ссылка в новой задаче