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
This commit is contained in:
peterlubczynski%netscape.com
2002-03-26 06:36:37 +00:00
parent 15dfb9e065
commit d8cb2aa1a7

View File

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