Bug 1501342 - In ProcessDisplayItems(), handle the case where scrollMetadataASR and mContainerScrollMetadataASR are in different branches of the ASR tree. r=mstange

Differential Revision: https://phabricator.services.mozilla.com/D13346

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Botond Ballo 2018-11-30 02:02:48 +00:00
Родитель edbb48ab90
Коммит 5aba9815a4
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -5145,8 +5145,10 @@ ContainerState::ProcessDisplayItems(nsDisplayList* aList)
ContainerLayerParameters params = mParameters;
params.mBackgroundColor = uniformColor;
params.mLayerCreationHint = GetLayerCreationHint(itemAGR);
params.mScrollMetadataASR = ActiveScrolledRoot::PickDescendant(
mContainerScrollMetadataASR, scrollMetadataASR);
params.mScrollMetadataASR =
ActiveScrolledRoot::IsAncestor(scrollMetadataASR, mContainerScrollMetadataASR)
? mContainerScrollMetadataASR
: scrollMetadataASR;
params.mCompositorASR =
params.mScrollMetadataASR != mContainerScrollMetadataASR
? params.mScrollMetadataASR