Skip to content

Commit

Permalink
Backed out changeset 66c2fb744703 (bug 1656689) for causing Bug 16672…
Browse files Browse the repository at this point in the history
…75. CLOSED TREE
  • Loading branch information
ncsoregi committed Sep 25, 2020
1 parent b14a771 commit 035dfde
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions layout/base/nsLayoutUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2093,17 +2093,19 @@ nsIScrollableFrame* nsLayoutUtils::GetNearestScrollableFrameForDirection(
for (nsIFrame* f = aFrame; f; f = nsLayoutUtils::GetCrossDocParentFrame(f)) {
nsIScrollableFrame* scrollableFrame = do_QueryFrame(f);
if (scrollableFrame) {
uint32_t directions =
scrollableFrame->GetAvailableScrollingDirectionsForUserInputEvents();
ScrollStyles ss = scrollableFrame->GetScrollStyles();
uint32_t directions = scrollableFrame->GetAvailableScrollingDirections();
if (aDirection == ScrollableDirection::Vertical ||
aDirection == ScrollableDirection::Either) {
if (directions & nsIScrollableFrame::VERTICAL) {
if (ss.mVertical != StyleOverflow::Hidden &&
(directions & nsIScrollableFrame::VERTICAL)) {
return scrollableFrame;
}
}
if (aDirection == ScrollableDirection::Horizontal ||
aDirection == ScrollableDirection::Either) {
if (directions & nsIScrollableFrame::HORIZONTAL) {
if (ss.mHorizontal != StyleOverflow::Hidden &&
(directions & nsIScrollableFrame::HORIZONTAL)) {
return scrollableFrame;
}
}
Expand Down

0 comments on commit 035dfde

Please sign in to comment.