mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
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:
parent
42cfd0d3ab
commit
1f2c35311b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user