Bug 1590281 - Don't propagate overscroll-behavior from body to viewport. r=hiro

Differential Revision: https://phabricator.services.mozilla.com/D50024
This commit is contained in:
Emilio Cobos Álvarez
2019-10-22 12:16:13 +00:00
parent fe9abc31fd
commit 13b4932da8
7 changed files with 45 additions and 46 deletions

View File

@@ -9006,10 +9006,8 @@ ScrollMetadata nsLayoutUtils::ComputeScrollMetadata(
}
metadata.SetSnapInfo(scrollableFrame->GetScrollSnapInfo());
ScrollStyles scrollStyles = scrollableFrame->GetScrollStyles();
metadata.SetOverscrollBehavior(OverscrollBehaviorInfo::FromStyleConstants(
scrollStyles.mOverscrollBehaviorX, scrollStyles.mOverscrollBehaviorY));
metadata.SetOverscrollBehavior(
scrollableFrame->GetOverscrollBehaviorInfo());
}
// If we have the scrollparent being the same as the scroll id, the