Bug 1728699. Use IsRootContentDocumentCrossProcess in one place in ScrollFrameHelper::BuildDisplayList. r=mattwoodrow

Differential Revision: https://phabricator.services.mozilla.com/D124282
This commit is contained in:
Timothy Nikkel 2021-09-03 02:23:03 +00:00
Родитель 84c9447e39
Коммит 7a00827c3b
1 изменённых файлов: 1 добавлений и 2 удалений

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

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