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

--HG--
extra : rebase_source : d52729121395a8a59c99e4e30a4565b8eab7f13d
This commit is contained in:
Robert O'Callahan 2014-02-07 13:17:52 +13:00
parent a4ce3a842e
commit b275242936

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();