Bug 209087

Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
caillon%returnzero.com
2003-06-13 20:10:01 +00:00
parent 83bf634c73
commit 0a6d1ae509
310 changed files with 2470 additions and 2523 deletions

View File

@@ -1555,8 +1555,8 @@ PRBool GetBGColorForHTMLElement( nsIPresContext *aPresContext,
nsIContent *pContent;
if (NS_SUCCEEDED(doc->GetRootContent(&pContent)) && pContent) {
// make sure that this is the HTML element
nsIAtom *tag = nsnull;
pContent->GetTag(tag);
nsCOMPtr<nsIAtom> tag;
pContent->GetTag(getter_AddRefs(tag));
NS_ASSERTION(tag, "Tag could not be retrieved from root content element");
if (tag) {
if (tag == nsHTMLAtoms::html ||
@@ -1580,7 +1580,6 @@ PRBool GetBGColorForHTMLElement( nsIPresContext *aPresContext,
printf( "Root Content is not HTML or BODY: cannot get bgColor of HTML or BODY\n");
}
#endif
NS_RELEASE(tag);
}// if tag
NS_RELEASE(pContent);
}// if content
@@ -1615,7 +1614,7 @@ nsresult GetFrameForBackgroundUpdate(nsIPresContext *aPresContext,nsIFrame *aFra
if (pContent) {
// make sure that this is the HTML or BODY element
nsCOMPtr<nsIAtom> tag;
pContent->GetTag(*(getter_AddRefs(tag)));
pContent->GetTag(getter_AddRefs(tag));
if (tag) {
if (tag.get() == nsHTMLAtoms::html ||
tag.get() == nsHTMLAtoms::body) {
@@ -2759,7 +2758,7 @@ FindElementBackground(nsIPresContext* aPresContext,
return PR_TRUE; // no parent to look at
nsCOMPtr<nsIAtom> tag;
content->GetTag(*getter_AddRefs(tag));
content->GetTag(getter_AddRefs(tag));
if (tag != nsHTMLAtoms::body)
return PR_TRUE; // not frame for <BODY> element
@@ -2822,7 +2821,7 @@ nsCSSRendering::PaintBackground(nsIPresContext* aPresContext,
aForFrame->GetContent(getter_AddRefs(content));
if (content) {
nsCOMPtr<nsIContent> parent;
content->GetParent(*getter_AddRefs(parent));
content->GetParent(getter_AddRefs(parent));
if (parent)
return;
else