Backed out changeset a954692bd4c5 (bug 1728699) for content crashes. CLOSED TREE

This commit is contained in:
Cosmin Sabou 2021-09-03 20:58:53 +03:00
Родитель efbb4a2760
Коммит eda6b9ae4c
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -3708,7 +3708,8 @@ void ScrollFrameHelper::BuildDisplayList(nsDisplayListBuilder* aBuilder,
// of the viewport, so most layer implementations would create a layer buffer
// that's much larger than necessary. Creating independent layers for each
// scrollbar works around the problem.
bool createLayersForScrollbars = isRootContent;
bool createLayersForScrollbars =
mIsRoot && mOuter->PresContext()->IsRootContentDocument();
nsIScrollableFrame* sf = do_QueryFrame(mOuter);
MOZ_ASSERT(sf);