зеркало из https://github.com/mozilla/gecko-dev.git
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, apparently... r=cls
This commit is contained in:
Родитель
a5c0b29e24
Коммит
09fe043cd1
|
@ -2386,7 +2386,10 @@ nsCSSRendering::FindNonTransparentBackground(nsIStyleContext* aContext,
|
|||
NS_ASSERTION(context, "Cannot find NonTransparentBackground in a null context" );
|
||||
|
||||
while (context) {
|
||||
::GetStyleData(context, &result);
|
||||
// Have to .get() because some compilers won't match the template
|
||||
// otherwise (they don't look for implicit type conversions while doing
|
||||
// template matching?).
|
||||
::GetStyleData(context.get(), &result);
|
||||
if (0 == (result->mBackgroundFlags & NS_STYLE_BG_COLOR_TRANSPARENT))
|
||||
break;
|
||||
|
||||
|
|
|
@ -2386,7 +2386,10 @@ nsCSSRendering::FindNonTransparentBackground(nsIStyleContext* aContext,
|
|||
NS_ASSERTION(context, "Cannot find NonTransparentBackground in a null context" );
|
||||
|
||||
while (context) {
|
||||
::GetStyleData(context, &result);
|
||||
// Have to .get() because some compilers won't match the template
|
||||
// otherwise (they don't look for implicit type conversions while doing
|
||||
// template matching?).
|
||||
::GetStyleData(context.get(), &result);
|
||||
if (0 == (result->mBackgroundFlags & NS_STYLE_BG_COLOR_TRANSPARENT))
|
||||
break;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче