зеркало из https://github.com/mozilla/pjs.git
Fix crash with transparent windows caused by bug 418454 r=robarnold
This commit is contained in:
Родитель
89eb4ac594
Коммит
ba7b59ca12
|
@ -5865,6 +5865,8 @@ PRBool nsWindow::OnPaint(HDC aDC)
|
||||||
#ifdef MOZ_XUL
|
#ifdef MOZ_XUL
|
||||||
nsRefPtr<gfxASurface> targetSurface;
|
nsRefPtr<gfxASurface> targetSurface;
|
||||||
if (eTransparencyTransparent == mTransparencyMode) {
|
if (eTransparencyTransparent == mTransparencyMode) {
|
||||||
|
if (mTransparentSurface == nsnull)
|
||||||
|
SetupTranslucentWindowMemoryBitmap(mTransparencyMode);
|
||||||
targetSurface = mTransparentSurface;
|
targetSurface = mTransparentSurface;
|
||||||
} else {
|
} else {
|
||||||
targetSurface = new gfxWindowsSurface(hDC);
|
targetSurface = new gfxWindowsSurface(hDC);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче