Bug 1728700. Use IsRootContentDocumentCrossProcess in another place in ScrollFrameHelper::BuildDisplayList. r=botond

This has to do with determining whether visual or layout coords are used, which is determined by the cross process root content doc.

Differential Revision: https://phabricator.services.mozilla.com/D124283
This commit is contained in:
Timothy Nikkel 2021-09-02 03:01:07 +00:00
Родитель 87be53243f
Коммит 9d236f874e
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -3854,8 +3854,7 @@ void ScrollFrameHelper::BuildDisplayList(nsDisplayListBuilder* aBuilder,
// The composition size is essentially in visual coordinates.
// If we are hit-testing in layout coordinates, transform the clip rect
// to layout coordinates to match.
if (aBuilder->IsRelativeToLayoutViewport() &&
mOuter->PresContext()->IsRootContentDocument()) {
if (aBuilder->IsRelativeToLayoutViewport() && isRootContent) {
clipRect = ViewportUtils::VisualToLayout(clipRect, mOuter->PresShell());
}
}