Bug 1288210 - Fixed a bug in how the ancestor transform is computed in AlignFixedAndStickyLayers. r=mstange

MozReview-Commit-ID: 8TL7PNpYv6R

--HG--
extra : rebase_source : 9f86bef66ca93e729c6c5a6f0e75d590bce03366
This commit is contained in:
Botond Ballo 2016-09-26 17:19:34 -04:00
parent 16c6388fe9
commit 6e45cf5c96

View File

@ -458,8 +458,10 @@ AsyncCompositionManager::AlignFixedAndStickyLayers(Layer* aTransformedSubtreeRoo
// Accumulate the transforms between this layer and the subtree root layer.
Matrix4x4 ancestorTransform;
AccumulateLayerTransforms(layer->GetParent(), aTransformedSubtreeRoot,
ancestorTransform);
if (layer != aTransformedSubtreeRoot) {
AccumulateLayerTransforms(layer->GetParent(), aTransformedSubtreeRoot,
ancestorTransform);
}
// Calculate the cumulative transforms between the subtree root with the
// old transform and the current transform.