Bug 498340. Fire NS_WILL_PAINT on Windows so flushes that change the window hierarchy happen before we call BeginPaint. r=jmathies

This commit is contained in:
Robert O'Callahan 2009-11-16 11:48:21 +13:00
parent df12cdae81
commit 453275ec80

View File

@ -322,6 +322,9 @@ EnsureSharedSurfaceSize(gfxIntSize size)
PRBool nsWindow::OnPaint(HDC aDC)
{
nsPaintEvent willPaintEvent(PR_TRUE, NS_WILL_PAINT, this);
DispatchWindowEvent(&willPaintEvent);
#ifdef CAIRO_HAS_DDRAW_SURFACE
if (IsRenderMode(gfxWindowsPlatform::RENDER_IMAGE_DDRAW16)) {
return OnPaintImageDDraw16();