Bug 626245. Part 5: Move plugin widgets before compositing the window, not after. r=matspal, a=bajaj

This commit is contained in:
Robert O'Callahan 2012-10-10 23:25:57 +13:00
Родитель b082b27b75
Коммит 88e60950b0
1 изменённых файлов: 3 добавлений и 7 удалений

Просмотреть файл

@ -7021,9 +7021,7 @@ PresShell::WillPaintWindow(bool aWillSendDidPaint)
return;
}
if (!aWillSendDidPaint) {
rootPresContext->ApplyPluginGeometryUpdates();
}
rootPresContext->ApplyPluginGeometryUpdates();
}
void
@ -7031,13 +7029,11 @@ PresShell::DidPaintWindow()
{
nsRootPresContext* rootPresContext = mPresContext->GetRootPresContext();
if (rootPresContext != mPresContext) {
// This could be a popup's presshell. We don't allow plugins in popups
// so there's nothing to do here.
// This could be a popup's presshell. No point in notifying XPConnect
// about compositing of popups.
return;
}
rootPresContext->ApplyPluginGeometryUpdates();
if (nsContentUtils::XPConnect()) {
nsContentUtils::XPConnect()->NotifyDidPaint();
}