зеркало из https://github.com/mozilla/gecko-dev.git
DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst
This commit is contained in:
Родитель
da4258a6f6
Коммит
835f255bfa
|
@ -100,10 +100,9 @@ static void GetPrimaryPresShell(nsIFrame* aFrame, nsIPresShell** aResult)
|
||||||
if (!aFrame)
|
if (!aFrame)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
nsCOMPtr<nsIDocument> doc;
|
|
||||||
nsCOMPtr<nsIContent> content;
|
nsCOMPtr<nsIContent> content;
|
||||||
aFrame->GetContent(getter_AddRefs(content));
|
aFrame->GetContent(getter_AddRefs(content));
|
||||||
content->GetDocument(getter_AddRefs(doc));
|
nsIDocument* doc = content->GetDocument();
|
||||||
if (doc)
|
if (doc)
|
||||||
doc->GetShellAt(0, aResult); // Addref happens here.
|
doc->GetShellAt(0, aResult); // Addref happens here.
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,10 +100,9 @@ static void GetPrimaryPresShell(nsIFrame* aFrame, nsIPresShell** aResult)
|
||||||
if (!aFrame)
|
if (!aFrame)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
nsCOMPtr<nsIDocument> doc;
|
|
||||||
nsCOMPtr<nsIContent> content;
|
nsCOMPtr<nsIContent> content;
|
||||||
aFrame->GetContent(getter_AddRefs(content));
|
aFrame->GetContent(getter_AddRefs(content));
|
||||||
content->GetDocument(getter_AddRefs(doc));
|
nsIDocument* doc = content->GetDocument();
|
||||||
if (doc)
|
if (doc)
|
||||||
doc->GetShellAt(0, aResult); // Addref happens here.
|
doc->GetShellAt(0, aResult); // Addref happens here.
|
||||||
}
|
}
|
||||||
|
|
|
@ -307,10 +307,9 @@ static void GetPrimaryPresShell(nsIFrame* aFrame, nsIPresShell** aResult)
|
||||||
if (!aFrame)
|
if (!aFrame)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
nsCOMPtr<nsIDocument> doc;
|
|
||||||
nsCOMPtr<nsIContent> content;
|
nsCOMPtr<nsIContent> content;
|
||||||
aFrame->GetContent(getter_AddRefs(content));
|
aFrame->GetContent(getter_AddRefs(content));
|
||||||
content->GetDocument(getter_AddRefs(doc));
|
nsIDocument* doc = content->GetDocument);
|
||||||
if (doc)
|
if (doc)
|
||||||
doc->GetShellAt(0, aResult); // Addref happens here.
|
doc->GetShellAt(0, aResult); // Addref happens here.
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче