Bug 1211360 - Don't snap for non-translation 3D transform. r=roc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user