Bug 1220020. Recompute the current animated geometry root when a child scroll frame forces us to be layerized, and therefore turns us into an animated geometry root. r=mstange

This commit is contained in:
Timothy Nikkel 2015-11-01 11:45:40 -06:00
parent 9f4c17d08a
commit fab9c3f0fa

View File

@ -3092,7 +3092,14 @@ ScrollFrameHelper::BuildDisplayList(nsDisplayListBuilder* aBuilder,
//
// This is not compatible when using containes for root scrollframes.
MOZ_ASSERT(couldBuildLayer && mScrolledFrame->GetContent());
bool needToRecomputeAGR = false;
if (!mWillBuildScrollableLayer) {
needToRecomputeAGR = true;
}
mWillBuildScrollableLayer = true;
if (needToRecomputeAGR) {
aBuilder->RecomputeCurrentAnimatedGeometryRoot();
}
}
}