Skip to content

Commit

Permalink
Bug 1673492 - Downgrade the assertion about two layers that scroll to…
Browse files Browse the repository at this point in the history
…gether having different ancestor transforms, to an NS_ASSERTION. r=kats

Differential Revision: https://phabricator.services.mozilla.com/D94787
  • Loading branch information
theres-waldo committed Oct 26, 2020
1 parent b799e58 commit 8f4c0e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gfx/layers/apz/src/APZCTreeManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1397,9 +1397,9 @@ HitTestingTreeNode* APZCTreeManager::PrepareNodeForLayer(
typedef TreeBuildingState::DeferredTransformMap::value_type PairType;
if (!aAncestorTransform.ContainsPerspectiveTransform() &&
!apzc->AncestorTransformContainsPerspective()) {
MOZ_ASSERT(false,
"Two layers that scroll together have different ancestor "
"transforms");
NS_ASSERTION(false,
"Two layers that scroll together have different ancestor "
"transforms");
} else if (!aAncestorTransform.ContainsPerspectiveTransform()) {
aState.mPerspectiveTransformsDeferredToChildren.insert(
PairType{apzc, apzc->GetAncestorTransformPerspective()});
Expand Down

0 comments on commit 8f4c0e5

Please sign in to comment.