| Index: third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp
|
| diff --git a/third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp b/third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp
|
| index 6b7411b86608e5764f5b816337ce6dce6bfc4aa7..9ac95bb6ec56810f4a121e069a3af57f93340496 100644
|
| --- a/third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp
|
| +++ b/third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp
|
| @@ -497,10 +497,12 @@ static bool inverse(const TransformationMatrix::Matrix4& matrix,
|
| // Calculate the adjoint matrix
|
| adjoint(matrix, result);
|
|
|
| + double rdet = 1 / det;
|
| +
|
| // Scale the adjoint matrix to get the inverse
|
| for (int i = 0; i < 4; i++)
|
| for (int j = 0; j < 4; j++)
|
| - result[i][j] = result[i][j] / det;
|
| + result[i][j] = result[i][j] * rdet;
|
| #endif
|
| return true;
|
| }
|
|
|