Fix build bustage. OS/2 and Sun Workshop won't do implicit type conversions (like .get() on an nsCOMPtr) while trying to match a template.

See also revision 3.188 of this file.


git-svn-id: svn://10.0.0.236/trunk@136508 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
caillon%returnzero.com
2003-01-17 12:16:36 +00:00
parent 8b51a21663
commit 9eac0ede5b
2 changed files with 8 additions and 2 deletions

View File

@@ -2614,7 +2614,10 @@ FindCanvasBackground(nsIPresContext* aPresContext,
while(firstChild){
for (nsIFrame* kidFrame = firstChild; nsnull != kidFrame; ) {
kidFrame->GetStyleContext(getter_AddRefs(parentContext));
::GetStyleData(parentContext, &result);
// Need to .get() because some compilers will not do the
// implicit .get() to match the template.
// See also rev 3.188 of this file.
::GetStyleData(parentContext.get(), &result);
if (!result->IsTransparent()) {
GetStyleData(kidFrame, aBackground);
return PR_TRUE;

View File

@@ -2614,7 +2614,10 @@ FindCanvasBackground(nsIPresContext* aPresContext,
while(firstChild){
for (nsIFrame* kidFrame = firstChild; nsnull != kidFrame; ) {
kidFrame->GetStyleContext(getter_AddRefs(parentContext));
::GetStyleData(parentContext, &result);
// Need to .get() because some compilers will not do the
// implicit .get() to match the template.
// See also rev 3.188 of this file.
::GetStyleData(parentContext.get(), &result);
if (!result->IsTransparent()) {
GetStyleData(kidFrame, aBackground);
return PR_TRUE;