зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1726261 - Replace GetCrossDocParentFrame in GetNearestScrollableFrameForDirection with GetCrossDocParentFrameInProcess. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D122910
This commit is contained in:
Родитель
9ae7ce258e
Коммит
c7296ae56d
|
@ -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 =
|
||||
|
|
Загрузка…
Ссылка в новой задаче