Bug 1211360 - Don't snap for non-translation 3D transform. r=roc

This commit is contained in:
Thinker K.F. Li
2015-10-25 22:05:00 -04:00
parent bb61e94018
commit 31d944f459
4 changed files with 37 additions and 5 deletions

View File

@@ -660,7 +660,9 @@ Layer::SnapTransformTranslation(const Matrix4x4& aTransform,
}
if(aTransform.IsSingular() ||
(aTransform._14 != 0 || aTransform._24 != 0 || aTransform._34 != 0)) {
aTransform.HasPerspectiveComponent() ||
aTransform.HasNonTranslation() ||
!aTransform.HasNonIntegerTranslation()) {
// For a singular transform, there is no reversed matrix, so we
// don't snap it.
// For a perspective transform, the content is transformed in