зеркало из https://github.com/mozilla/gecko-dev.git
Bug 626245. Part 5: Move plugin widgets before compositing the window, not after. r=matspal, a=bajaj
This commit is contained in:
Родитель
b082b27b75
Коммит
88e60950b0
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче