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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user