Bug 1076241 - Get rid of the nontransient async transform. r=kats

This commit is contained in:
Botond Ballo
2014-12-19 18:53:05 -05:00
parent 70e324a117
commit 6c9439a5e0
9 changed files with 57 additions and 87 deletions

View File

@@ -72,8 +72,8 @@ GetTransformToAncestorsParentLayer(Layer* aStart, const LayerMetricsWrapper& aAn
ancestorParent ? iter != ancestorParent : iter.IsValid();
iter = iter.GetParent()) {
transform = transform * iter.GetTransform();
// If the layer has a non-transient async transform then we need to apply it here
// because it will get applied by the APZ in the compositor as well
// If the layer has a pres shell resolution, the compositor will apply
// a scale to scale to this transform. Apply it here too.
const FrameMetrics& metrics = iter.Metrics();
transform.PostScale(metrics.mPresShellResolution, metrics.mPresShellResolution, 1.f);
}