Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Issue 23450017: Scrolling allowed when overflow:hidden (seen on Acid2) (Closed)

Created:
7 years, 3 months ago by tonikitoo_
Modified:
7 years, 3 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Scrolling allowed when overflow:hidden (seen on Acid2) Autoscroll, as well as other user-driven scroll actions, has to respect the scrollability styled into the web page. More specifically, if a html or body tags are styled with overflow:hidden, autoscroll should not scroll the containing document. In order to fix this, patch hardens RenderBox::canAutoscroll as following: previously, ::canAutoscroll was relying only on ::canBeScrolledAndHasScrollableArea to determine the scrollability of #document node, which was unconditionally returned as 'true'. Patch extends ::canAutoscroll to handle the #document case for main and inner frames, and now it asks through ::isScrollable if the corresponding document's FrameView is actually user-scrollable. Note, that the patch changes ::canAutoscroll to cover the non-mainFrame case now. Autoscroll'ing the mainframe's document is hard with the current EventSender machinary. Because of that, patch adds an iframe's document test case. Test added in fast/events/autoscroll-in-overflow-hidden-html.html Corresponding WebKit commit: <http://trac.webkit.org/changeset/154722>; BUG=chromium:1701 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157371

Patch Set 1 #

Total comments: 5

Patch Set 2 : Scrolling allowed when overflow:hidden (seen on Acid2) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -11 lines) Patch
A LayoutTests/fast/events/autoscroll-in-overflow-hidden-html.html View 1 1 chunk +77 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/autoscroll-in-overflow-hidden-html-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/resources/big-page-with-overflow-hidden-and-anchor-scroll.html View 1 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 1 chunk +4 lines, -11 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Julien - ping for review
The code change is fine, just concerned about the test. https://codereview.chromium.org/23450017/diff/1/LayoutTests/fast/events/autoscroll-in-overflow-hidden-html-expected.txt File LayoutTests/fast/events/autoscroll-in-overflow-hidden-html-expected.txt (right): https://codereview.chromium.org/23450017/diff/1/LayoutTests/fast/events/autoscroll-in-overflow-hidden-html-expected.txt#newcode1 ...
7 years, 3 months ago (2013-09-04 20:50:36 UTC) #1
Julien - ping for review
lgtm, we should investigate how to remove those stupid 100ms sleep into the auto-scroll tests. ...
7 years, 3 months ago (2013-09-04 22:06:59 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/a1.gomes@sisa.samsung.com/23450017/9001
7 years, 3 months ago (2013-09-06 14:09:03 UTC) #3
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 15:30:26 UTC) #4
Message was sent while issue was closed.
Change committed as 157371

Powered by Google App Engine
This is Rietveld 408576698