mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1923790. Skip a matrix ChangeBasis in GetResultingTransformMatrix when it's useless. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D225172
This commit is contained in:
parent
f55cca95cd
commit
4e3a1d0815
@ -6236,7 +6236,9 @@ Matrix4x4 nsDisplayTransform::GetResultingTransformMatrixInternal(
|
||||
}
|
||||
|
||||
// Apply any translation due to 'transform-origin' and/or 'transform-box':
|
||||
result.ChangeBasis(aProperties.mToTransformOrigin);
|
||||
if (aProperties.mToTransformOrigin != gfx::Point3D()) {
|
||||
result.ChangeBasis(aProperties.mToTransformOrigin);
|
||||
}
|
||||
|
||||
if (parentHasChildrenOnlyTransform) {
|
||||
float pixelsPerCSSPx = AppUnitsPerCSSPixel() / aAppUnitsPerPixel;
|
||||
|
Loading…
Reference in New Issue
Block a user