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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user