From d8cb2aa1a7aee852823db1e985db8665a1cf5254 Mon Sep 17 00:00:00 2001 From: "peterlubczynski%netscape.com" Date: Tue, 26 Mar 2002 06:36:37 +0000 Subject: [PATCH] Fixing redraw problem with full page plugins like Acrobat on Mac, bug 124563 r=av, sr=beard, a=asa git-svn-id: svn://10.0.0.236/trunk@117466 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/plugin/base/src/nsPluginViewer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/modules/plugin/base/src/nsPluginViewer.cpp b/mozilla/modules/plugin/base/src/nsPluginViewer.cpp index 57d59c2e3f6..bc974e1fed3 100644 --- a/mozilla/modules/plugin/base/src/nsPluginViewer.cpp +++ b/mozilla/modules/plugin/base/src/nsPluginViewer.cpp @@ -376,6 +376,13 @@ PluginViewerImpl::StartLoad(nsIRequest* request, nsIStreamListener*& aResult) nsRect r; mWindow->GetClientBounds(r); rv = CreatePlugin(request, host, nsRect(0, 0, r.width, r.height), aResult); + +#ifdef XP_MAC + // On Mac, we need to initiate the intial invalidate for full-page plugins to ensure + // the entire window gets cleared. Otherwise, Acrobat won't initially repaint on top + // of our previous presentation and we may have garbage leftover + mWindow->Invalidate(PR_FALSE); +#endif } return rv;