DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,

r+sr=jst
This commit is contained in:
bzbarsky%mit.edu 2005-08-20 07:13:30 +00:00
Родитель da4258a6f6
Коммит 835f255bfa
3 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -100,10 +100,9 @@ static void GetPrimaryPresShell(nsIFrame* aFrame, nsIPresShell** aResult)
if (!aFrame)
return;
nsCOMPtr<nsIDocument> doc;
nsCOMPtr<nsIContent> content;
aFrame->GetContent(getter_AddRefs(content));
content->GetDocument(getter_AddRefs(doc));
nsIDocument* doc = content->GetDocument();
if (doc)
doc->GetShellAt(0, aResult); // Addref happens here.
}

Просмотреть файл

@ -100,10 +100,9 @@ static void GetPrimaryPresShell(nsIFrame* aFrame, nsIPresShell** aResult)
if (!aFrame)
return;
nsCOMPtr<nsIDocument> doc;
nsCOMPtr<nsIContent> content;
aFrame->GetContent(getter_AddRefs(content));
content->GetDocument(getter_AddRefs(doc));
nsIDocument* doc = content->GetDocument();
if (doc)
doc->GetShellAt(0, aResult); // Addref happens here.
}

Просмотреть файл

@ -307,10 +307,9 @@ static void GetPrimaryPresShell(nsIFrame* aFrame, nsIPresShell** aResult)
if (!aFrame)
return;
nsCOMPtr<nsIDocument> doc;
nsCOMPtr<nsIContent> content;
aFrame->GetContent(getter_AddRefs(content));
content->GetDocument(getter_AddRefs(doc));
nsIDocument* doc = content->GetDocument);
if (doc)
doc->GetShellAt(0, aResult); // Addref happens here.
}