Bug 1726450 - Upgrade the 'two layers that scroll together' assertion to MOZ_ASSERT again. r=tnikkel

Differential Revision: https://phabricator.services.mozilla.com/D123016
This commit is contained in:
Botond Ballo 2021-08-19 02:25:49 +00:00
Родитель 980837755c
Коммит c6e24a791e
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1414,9 +1414,9 @@ HitTestingTreeNode* APZCTreeManager::PrepareNodeForLayer(
typedef TreeBuildingState::DeferredTransformMap::value_type PairType;
if (!aAncestorTransform.ContainsPerspectiveTransform() &&
!apzc->AncestorTransformContainsPerspective()) {
NS_ASSERTION(false,
"Two layers that scroll together have different ancestor "
"transforms");
MOZ_ASSERT(false,
"Two layers that scroll together have different ancestor "
"transforms");
} else if (!aAncestorTransform.ContainsPerspectiveTransform()) {
aState.mPerspectiveTransformsDeferredToChildren.insert(
PairType{apzc, apzc->GetAncestorTransformPerspective()});