Bug 1498639 - Give WR the id of the scroll frame perspective scrolls relative to, and compute the right transform based on that. r=kats,kvark

I think this is as clean as it can get.

Differential Revision: https://phabricator.services.mozilla.com/D17848
This commit is contained in:
Emilio Cobos Álvarez
2019-01-28 23:41:08 +00:00
parent 564ee8af0b
commit 0f2323fb6e
10 changed files with 105 additions and 19 deletions

View File

@@ -36,7 +36,7 @@ StackingContextHelper::StackingContextHelper(
gfx::Matrix transform2d;
if (aParams.mBoundTransform &&
aParams.mBoundTransform->CanDraw2D(&transform2d) &&
aParams.reference_frame_kind != wr::ReferenceFrameKind::Perspective &&
aParams.reference_frame_kind != wr::WrReferenceFrameKind::Perspective &&
!aParentSC.mIsPreserve3D) {
mInheritedTransform = transform2d * aParentSC.mInheritedTransform;