Bug 671916 - Fix windowless Flash Player painting crash; r=cjones

This commit is contained in:
Benoit Girard 2011-08-10 10:12:25 -04:00
parent 7147e45572
commit f3d98f2440

View File

@ -3518,7 +3518,13 @@ PluginInstanceChild::SwapSurfaces()
mDoubleBufferCARenderer.ClearFrontSurface();
}
#endif //MOZ_WIDGET_COCOA
#else
if (mCurrentSurface && mBackSurface &&
(mCurrentSurface->GetSize() != mBackSurface->GetSize() ||
mCurrentSurface->GetContentType() != mBackSurface->GetContentType())) {
ClearCurrentSurface();
}
#endif
}
void