зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
87be53243f
Коммит
9d236f874e
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче