fixing windows plugin clipping bugs. bug 328263. r=vlad
git-svn-id: svn://10.0.0.236/trunk@191067 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -770,9 +770,7 @@ nsNativeThemeWin::DrawWidgetBackground(nsIRenderingContext* aContext,
|
||||
SetGraphicsMode(hdc, GM_ADVANCED);
|
||||
|
||||
/* Need to force the clip to be set */
|
||||
ctx->NewPath();
|
||||
ctx->Rectangle(gfxRect(0,0,0,0));
|
||||
ctx->Fill();
|
||||
ctx->UpdateSurfaceClip();
|
||||
|
||||
//ctx->CurrentSurface()->Flush();
|
||||
|
||||
@@ -1829,9 +1827,7 @@ nsresult nsNativeThemeWin::ClassicDrawWidgetBackground(nsIRenderingContext* aCon
|
||||
SetGraphicsMode(hdc, GM_ADVANCED);
|
||||
|
||||
/* Need to force the clip to be set */
|
||||
ctx->NewPath();
|
||||
ctx->Rectangle(gfxRect(0,0,0,0));
|
||||
ctx->Fill();
|
||||
ctx->UpdateSurfaceClip();
|
||||
|
||||
/* Set the device offsets as appropriate */
|
||||
gfxFloat xoff, yoff;
|
||||
|
||||
Reference in New Issue
Block a user