Bug 967587. Back out this hunk of bug 946502 part 3 until we can fix the regressions. r=mattwoodrow

This commit is contained in:
Robert O'Callahan
2014-02-07 13:17:52 +13:00
parent a1a965bf05
commit 5a8df5960c

View File

@@ -2161,14 +2161,6 @@ ContainerState::FindThebesLayerFor(nsDisplayItem* aItem,
thebesLayerData->mLayer = layer;
thebesLayerData->mAnimatedGeometryRoot = aActiveScrolledRoot;
thebesLayerData->mReferenceFrame = aItem->ReferenceFrame();
if (!aActiveScrolledRoot->GetParent() &&
nsLayoutUtils::ViewportHasDisplayPort(aActiveScrolledRoot->PresContext())) {
// The active scrolled root is the viewport, so this is background-attachment:fixed
// or fixed-pos elements or something like that. Async scrolling may
// do magic things to move these layers, so don't allow any regular content
// to be pushed to layers below them; that might turn out to be incorrect.
thebesLayerData->SetAllDrawingAbove();
}
NS_ASSERTION(!mNewChildLayers.Contains(layer), "Layer already in list???");
*mNewChildLayers.AppendElement() = layer.forget();