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:
pavlov%pavlov.net
2006-02-23 20:55:42 +00:00
parent 6406abdb0d
commit 08a9b57473
5 changed files with 47 additions and 39 deletions

View File

@@ -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;