Skip to content

Commit

Permalink
Bug 1141488 - On non-APZ platforms, combine any async transform with …
Browse files Browse the repository at this point in the history
…the OMTA transform rather than clobbering it the OMTA transform.
  • Loading branch information
rmottola committed Jul 5, 2019
1 parent 7466c12 commit fe48d67
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gfx/layers/composite/AsyncCompositionManager.cpp
Expand Up @@ -979,9 +979,11 @@ AsyncCompositionManager::TransformScrollableLayer(Layer* aLayer)
ParentLayerPoint translation = userScroll - goannaScroll;
Matrix4x4 treeTransform = ViewTransform(asyncZoom, -translation);

SetShadowTransform(aLayer, oldTransform * treeTransform);
NS_ASSERTION(!aLayer->AsLayerComposite()->GetShadowTransformSetByAnimation(),
"overwriting animated transform!");
// Apply the tree transform on top of GetLocalTransform() here (rather than
// GetTransform()) in case the OMTA code in SampleAnimations already set a
// shadow transform; in that case we want to apply ours on top of that one
// rather than clobber it.
SetShadowTransform(aLayer, aLayer->GetLocalTransform() * treeTransform);

// Make sure that overscroll and under-zoom are represented in the old
// transform so that fixed position content moves and scales accordingly.
Expand Down

0 comments on commit fe48d67

Please sign in to comment.