зеркало из https://github.com/mozilla/gecko-dev.git
176505: Fix composer/mail compose regression, back out jag. a=blizzard & #mozilla
This commit is contained in:
Родитель
25eaf5cc21
Коммит
b805addd63
|
@ -450,9 +450,17 @@ nsFrameLoader::EnsureDocShell()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if it isn't content, set it to the parent's type
|
if (isContent) {
|
||||||
PRInt32 shellType = isContent ? nsIDocShellTreeItem::typeContent : parentType;
|
// The web shell's type is content.
|
||||||
docShellAsItem->SetItemType(shellType);
|
|
||||||
|
docShellAsItem->SetItemType(nsIDocShellTreeItem::typeContent);
|
||||||
|
} else {
|
||||||
|
// Inherit our type from our parent webshell. If it is
|
||||||
|
// chrome, we'll be chrome. If it is content, we'll be
|
||||||
|
// content.
|
||||||
|
|
||||||
|
docShellAsItem->SetItemType(parentType);
|
||||||
|
}
|
||||||
|
|
||||||
parentAsNode->AddChild(docShellAsItem);
|
parentAsNode->AddChild(docShellAsItem);
|
||||||
|
|
||||||
|
@ -461,8 +469,7 @@ nsFrameLoader::EnsureDocShell()
|
||||||
parentAsItem->GetTreeOwner(getter_AddRefs(parentTreeOwner));
|
parentAsItem->GetTreeOwner(getter_AddRefs(parentTreeOwner));
|
||||||
|
|
||||||
if(parentTreeOwner) {
|
if(parentTreeOwner) {
|
||||||
PRBool is_primary = shellType == nsIDocShellTreeItem::typeChrome &&
|
PRBool is_primary = value.Equals(NS_LITERAL_STRING("content-primary"));
|
||||||
value.Equals(NS_LITERAL_STRING("content-primary"));
|
|
||||||
|
|
||||||
parentTreeOwner->ContentShellAdded(docShellAsItem, is_primary,
|
parentTreeOwner->ContentShellAdded(docShellAsItem, is_primary,
|
||||||
value.get());
|
value.get());
|
||||||
|
|
|
@ -683,10 +683,7 @@ nsHTMLFrameOuterFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||||
nsCOMPtr<nsIDocShellTreeOwner> parentTreeOwner;
|
nsCOMPtr<nsIDocShellTreeOwner> parentTreeOwner;
|
||||||
parentAsItem->GetTreeOwner(getter_AddRefs(parentTreeOwner));
|
parentAsItem->GetTreeOwner(getter_AddRefs(parentTreeOwner));
|
||||||
if (parentTreeOwner) {
|
if (parentTreeOwner) {
|
||||||
PRInt32 shellType;
|
|
||||||
parentAsItem->GetItemType(&shellType);
|
|
||||||
PRBool is_primary_content =
|
PRBool is_primary_content =
|
||||||
shellType == nsIDocShellTreeItem::typeChrome &&
|
|
||||||
value.EqualsIgnoreCase("content-primary");
|
value.EqualsIgnoreCase("content-primary");
|
||||||
|
|
||||||
parentTreeOwner->ContentShellAdded(docShellAsItem, is_primary_content,
|
parentTreeOwner->ContentShellAdded(docShellAsItem, is_primary_content,
|
||||||
|
|
|
@ -683,10 +683,7 @@ nsHTMLFrameOuterFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||||
nsCOMPtr<nsIDocShellTreeOwner> parentTreeOwner;
|
nsCOMPtr<nsIDocShellTreeOwner> parentTreeOwner;
|
||||||
parentAsItem->GetTreeOwner(getter_AddRefs(parentTreeOwner));
|
parentAsItem->GetTreeOwner(getter_AddRefs(parentTreeOwner));
|
||||||
if (parentTreeOwner) {
|
if (parentTreeOwner) {
|
||||||
PRInt32 shellType;
|
|
||||||
parentAsItem->GetItemType(&shellType);
|
|
||||||
PRBool is_primary_content =
|
PRBool is_primary_content =
|
||||||
shellType == nsIDocShellTreeItem::typeChrome &&
|
|
||||||
value.EqualsIgnoreCase("content-primary");
|
value.EqualsIgnoreCase("content-primary");
|
||||||
|
|
||||||
parentTreeOwner->ContentShellAdded(docShellAsItem, is_primary_content,
|
parentTreeOwner->ContentShellAdded(docShellAsItem, is_primary_content,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче