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:
Robert O'Callahan 2010-06-01 11:38:40 +12:00
parent df3a9db4cd
commit f77c59cf8c

View File

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