зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1552608 - Handle fixed layer margins in ComputeTransformForNode(). r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D48379 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
c747ab0102
Коммит
f8900bc22d
|
@ -3271,6 +3271,14 @@ LayerToParentLayerMatrix4x4 APZCTreeManager::ComputeTransformForNode(
|
|||
scrollTargetNode->IsAncestorOf(aNode), nullptr);
|
||||
});
|
||||
}
|
||||
} else if (IsFixedToRootContent(aNode)) {
|
||||
ParentLayerPoint translation = ViewAs<ParentLayerPixel>(
|
||||
AsyncCompositionManager::ComputeFixedMarginsOffset(
|
||||
mFixedLayerMargins, aNode->GetFixedPosSides()),
|
||||
PixelCastJustification::ScreenIsParentLayerForRoot);
|
||||
return aNode->GetTransform() *
|
||||
CompleteAsyncTransform(
|
||||
AsyncTransformComponentMatrix::Translation(translation));
|
||||
}
|
||||
// Otherwise, the node does not have an async transform.
|
||||
return aNode->GetTransform() * AsyncTransformMatrix();
|
||||
|
|
Загрузка…
Ссылка в новой задаче