mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
Bug 568390. When a Mac plugin is instantiated, as well as showing the widget we need to explicitly invalidate our frame. r=josh
This commit is contained in:
parent
df3a9db4cd
commit
f77c59cf8c
@ -750,6 +750,12 @@ nsObjectFrame::CreateWidget(nscoord aWidth,
|
||||
// only happen with a plugin in a XUL popup.
|
||||
if (parentWidget == GetWindow()) {
|
||||
mWidget->Show(PR_TRUE);
|
||||
#ifdef XP_MACOSX
|
||||
// On Mac, we need to invalidate ourselves since even windowed
|
||||
// plugins are painted through Thebes and we need to ensure
|
||||
// the Thebes layer containing the plugin is updated.
|
||||
Invalidate(GetContentRect() - GetPosition());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user