DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823, r+sr=jst

git-svn-id: svn://10.0.0.236/trunk@145284 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2003-07-28 21:09:56 +00:00
parent 64242301f9
commit 0147d8d4a6
37 changed files with 278 additions and 512 deletions

View File

@@ -619,8 +619,7 @@ nsHTMLContentSerializer::SerializeAttributes(nsIContent* aContent,
// but that gets more complicated since we have to
// search the tag list for CODEBASE as well.
// For now, just leave them relative.
nsCOMPtr<nsIDocument> document;
aContent->GetDocument(getter_AddRefs(document));
nsIDocument* document = aContent->GetDocument();
if (document) {
nsCOMPtr<nsIURI> uri;
document->GetBaseURL(getter_AddRefs(uri));