Bug 1726261 - Replace GetCrossDocParentFrame in GetNearestScrollableFrameForDirection with GetCrossDocParentFrameInProcess. r=botond

Differential Revision: https://phabricator.services.mozilla.com/D122910
This commit is contained in:
Hiroyuki Ikezoe 2021-09-09 23:21:41 +00:00
Родитель 9ae7ce258e
Коммит c7296ae56d
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -1426,7 +1426,10 @@ nsIScrollableFrame* nsLayoutUtils::GetNearestScrollableFrameForDirection(
nsIFrame* aFrame, ScrollDirections aDirections) {
NS_ASSERTION(
aFrame, "GetNearestScrollableFrameForDirection expects a non-null frame");
for (nsIFrame* f = aFrame; f; f = nsLayoutUtils::GetCrossDocParentFrame(f)) {
// FIXME Bug 1714720 : This nearest scroll target is not going to work over
// process boundaries, in such cases we need to hand over in APZ side.
for (nsIFrame* f = aFrame; f;
f = nsLayoutUtils::GetCrossDocParentFrameInProcess(f)) {
nsIScrollableFrame* scrollableFrame = do_QueryFrame(f);
if (scrollableFrame) {
ScrollDirections directions =