Bug 1315854 - Account for rounding error when checking if certain transforms are the identity in AsyncCompositionManager::AlignFixedAndStickyLayers(). r=mstange

MozReview-Commit-ID: 4xxuqWHedeS

--HG--
extra : rebase_source : ee81a68b7e084896333cb0a9ac97a83e3c0f0388
This commit is contained in:
Botond Ballo 2016-11-16 15:59:24 -05:00
parent 42cfd0d3ab
commit 1f2c35311b

View File

@ -478,6 +478,7 @@ AsyncCompositionManager::AlignFixedAndStickyLayers(Layer* aTransformedSubtreeRoo
AccumulateLayerTransforms(layer->GetParent(), aTransformedSubtreeRoot,
ancestorTransform);
}
ancestorTransform.NudgeToIntegersFixedEpsilon();
MOZ_ASSERT(ancestorTransform.IsIdentity());
#endif
@ -488,6 +489,7 @@ AsyncCompositionManager::AlignFixedAndStickyLayers(Layer* aTransformedSubtreeRoo
#ifdef DEBUG
Matrix4x4 localTransform;
GetBaseTransform(layer, &localTransform);
localTransform.NudgeToIntegersFixedEpsilon();
MOZ_ASSERT(localTransform.IsIdentity());
#endif