Bug 1305352 - (Part 1) Make Presentation API support XUL browser element. r=smaug

MozReview-Commit-ID: 9t5mhvcbpXB
This commit is contained in:
KuoE0
2016-10-27 11:27:41 +08:00
parent bbde67ae1f
commit 332cef1891
4 changed files with 24 additions and 3 deletions

View File

@@ -14247,6 +14247,20 @@ nsDocShell::GetIsInMozBrowserOrApp(bool* aIsInMozBrowserOrApp)
return NS_OK;
}
/* [infallible] */ NS_IMETHODIMP
nsDocShell::GetIsTopLevelContentDocShell(bool* aIsTopLevelContentDocShell)
{
*aIsTopLevelContentDocShell = false;
if (mItemType == typeContent) {
nsCOMPtr<nsIDocShellTreeItem> root;
GetSameTypeRootTreeItem(getter_AddRefs(root));
*aIsTopLevelContentDocShell = root.get() == static_cast<nsIDocShellTreeItem*>(this);
}
return NS_OK;
}
/* [infallible] */ NS_IMETHODIMP
nsDocShell::GetAppId(uint32_t* aAppId)
{