mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Bug 1138181 - Be more aggressive in updating plugin geometry in the compositor, avoids filtering out important offset updates that don't involve remote layer tree updates. r=roc
This commit is contained in:
parent
10fa0b3d2f
commit
f6aaca0465
@ -252,8 +252,6 @@ CompositorChild::RecvUpdatePluginConfigurations(const nsIntPoint& aContentOffset
|
||||
// Handle invalidation, this can be costly, avoid if it is not needed.
|
||||
if (isVisible) {
|
||||
// invalidate region (widget origin)
|
||||
nsIntRect bounds = aPlugins[pluginsIdx].bounds();
|
||||
nsIntRect rect(0, 0, bounds.width, bounds.height);
|
||||
#if defined(XP_WIN)
|
||||
// Work around for flash's crummy sandbox. See bug 762948. This call
|
||||
// digs down into the window hirearchy, invalidating regions on
|
||||
|
@ -1818,8 +1818,7 @@ UpdatePluginWindowState(uint64_t aId)
|
||||
}
|
||||
|
||||
bool shouldComposePlugin = !!lts.mRoot &&
|
||||
!!lts.mRoot->GetParent() &&
|
||||
lts.mUpdatedPluginDataAvailable;
|
||||
!!lts.mRoot->GetParent();
|
||||
|
||||
bool shouldHidePlugin = (!lts.mRoot ||
|
||||
!lts.mRoot->GetParent()) &&
|
||||
@ -1832,6 +1831,7 @@ UpdatePluginWindowState(uint64_t aId)
|
||||
// calculating clipping.
|
||||
nsTArray<uintptr_t> aVisibleIdList;
|
||||
unused << lts.mParent->SendUpdatePluginVisibility(aVisibleIdList);
|
||||
lts.mUpdatedPluginDataAvailable = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user