From 9d8d5b97e2f735756e32852bd1d2c851b3d643b1 Mon Sep 17 00:00:00 2001 From: Jim Mathies Date: Mon, 5 Apr 2010 11:43:55 -0500 Subject: [PATCH] Bug 552062 - [OOPP] Black Background on certain Flash Objects. r=bent. --- dom/plugins/PluginInstanceChild.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/plugins/PluginInstanceChild.cpp b/dom/plugins/PluginInstanceChild.cpp index 9b3da065b1ba..c557b248b0bc 100644 --- a/dom/plugins/PluginInstanceChild.cpp +++ b/dom/plugins/PluginInstanceChild.cpp @@ -1422,8 +1422,8 @@ PluginInstanceChild::SharedSurfacePaint(NPEvent& evcopy) } // See gfxWindowsNativeDrawing, color order doesn't have to match. - ::FillRect(mSharedSurfaceDib.GetHDC(), pRect, (HBRUSH)GetStockObject(WHITE_BRUSH)); UpdatePaintClipRect(pRect); + ::FillRect(mSharedSurfaceDib.GetHDC(), pRect, (HBRUSH)GetStockObject(WHITE_BRUSH)); evcopy.wParam = WPARAM(mSharedSurfaceDib.GetHDC()); if (!mPluginIface->event(&mData, reinterpret_cast(&evcopy))) { mAlphaExtract.doublePass = RENDER_NATIVE; @@ -1452,6 +1452,7 @@ PluginInstanceChild::SharedSurfacePaint(NPEvent& evcopy) break; case RENDER_BACK_TWO: // copy our cached surface back + UpdatePaintClipRect(pRect); ::BitBlt(mSharedSurfaceDib.GetHDC(), pRect->left, pRect->top,