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

@@ -249,7 +249,7 @@ nsContextMenuInfo::GetBackgroundImageRequest(nsIDOMNode * aDOMNode, imgIRequest
// Get Document
nsCOMPtr<nsIDocument> document;
content->GetDocument(*getter_AddRefs(document));
content->GetDocument(getter_AddRefs(document));
NS_ENSURE_TRUE(document, NS_ERROR_FAILURE);
// Get shell
@@ -330,7 +330,7 @@ nsContextMenuInfo::GetBackgroundImageRequest(nsIDOMNode * aDOMNode, imgIRequest
// Perhaps there is a better, pubically supported way to get the same thing done?
////////
// nethod GetFrameForBackgroundUpdate
// method GetFrameForBackgroundUpdate
//
// If the frame (aFrame) is the HTML or BODY frame then find the canvas frame and set the
// aBGFrame param to that. This is used when we need a frame to invalidate after an asynch
@@ -353,7 +353,7 @@ nsresult nsContextMenuInfo::GetFrameForBackgroundUpdate(nsIPresContext *aPresCon
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));
nsCOMPtr<nsIAtom> mTag_html = getter_AddRefs(NS_NewAtom("html"));
nsCOMPtr<nsIAtom> mTag_body = getter_AddRefs(NS_NewAtom("body"));
if (tag &&

View File

@@ -918,7 +918,7 @@ NS_IMETHODIMP DefaultTooltipTextProvider::GetNodeText(nsIDOMNode *aNode, PRUnich
nsCOMPtr<nsIContent> content(do_QueryInterface(currElement));
if (content) {
nsCOMPtr<nsIAtom> tagAtom;
content->GetTag(*getter_AddRefs(tagAtom));
content->GetTag(getter_AddRefs(tagAtom));
if (tagAtom != mTag_dialog &&
tagAtom != mTag_dialogheader &&
tagAtom != mTag_window) {