Bug 831768 part 2 - Also defer painting from RecvUpdateBackground just as we did with RecvAsyncSetWindow, r=gfritzsche

--HG--
extra : rebase_source : c5b2001b1c32b1be7d5718bb72ae956706d572a4
This commit is contained in:
Benjamin Smedberg 2013-03-29 11:53:59 -04:00
Родитель 1b69f6f153
Коммит 2b9e63f722
1 изменённых файлов: 3 добавлений и 7 удалений

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

@ -3833,13 +3833,9 @@ PluginInstanceChild::RecvUpdateBackground(const SurfaceDescriptor& aBackground,
// XXX refactor me
mAccumulatedInvalidRect.UnionRect(aRect, mAccumulatedInvalidRect);
// The browser is limping along with a stale copy of our pixels.
// Try to repaint ASAP. This will ClearCurrentBackground() if we
// needed it.
if (!ShowPluginFrame()) {
NS_WARNING("Couldn't immediately repaint plugin instance");
AsyncShowPluginFrame();
}
// This must be asynchronous, because we may be nested within RPC messages
// which do not expect to receiving paint events.
AsyncShowPluginFrame();
return true;
}