зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
84c9447e39
Коммит
7a00827c3b
|
@ -3708,8 +3708,7 @@ 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 =
|
||||
mIsRoot && mOuter->PresContext()->IsRootContentDocument();
|
||||
bool createLayersForScrollbars = isRootContent;
|
||||
|
||||
nsIScrollableFrame* sf = do_QueryFrame(mOuter);
|
||||
MOZ_ASSERT(sf);
|
||||
|
|
Загрузка…
Ссылка в новой задаче