Bug 966397. Don't try to add fixed-pos metadata for inactive layer subtrees. r=mattwoodrow

--HG--
extra : rebase_source : 119635c63af471a0d6384901d99f242b14a39e9a
This commit is contained in:
Robert O'Callahan 2014-02-17 14:51:49 +13:00
parent f4c52a42e7
commit 39c3f2bf7b

View File

@ -1666,6 +1666,11 @@ ContainerState::FindFixedPosFrameForLayerData(const nsIFrame* aAnimatedGeometryR
nsIntRegion* aVisibleRegion, nsIntRegion* aVisibleRegion,
bool* aIsSolidColorInVisibleRegion) bool* aIsSolidColorInVisibleRegion)
{ {
if (!mManager->IsWidgetLayerManager()) {
// Never attach any fixed-pos metadata to inactive layers, it's pointless!
return nullptr;
}
nsPresContext* presContext = mContainerFrame->PresContext(); nsPresContext* presContext = mContainerFrame->PresContext();
nsIFrame* viewport = presContext->PresShell()->GetRootFrame(); nsIFrame* viewport = presContext->PresShell()->GetRootFrame();
const nsIFrame* result = nullptr; const nsIFrame* result = nullptr;