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

Issue 23472005: div with overflow:hidden scrolls when dragging in a text box (Closed)

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

Description

div with overflow:hidden scrolls when dragging in a text box Consider the case of the following HTML: <div style="overflow:hidden; width: 100px; height: 100px" > <input id="input" type="text" size=10 value="any text here!"/> <button style="position:relative; top: 100px; left: 100px"/> </div> If ones starts a text selection by dragging the mouse from within the input field, and continues to drag beyong the outer div boundary, the latter will be scrolled no matter its overflow:hidden style. That happens because when the autoscroll has started, it gets propagated up to the current layer's parent layer, instead of the to current layer's enclosing scrollable layer. Patch fixes the issue by hardening the way scrolling is propagated upwards when autoscroll is being performed. RenderLayer::enclosingScrollableLayer method also got rewritten in terms of RenderLayer tree traversing, instead of RenderObject tree. The rewrite adds support for cross frame upwards traversal. Test: fast/events/autoscroll-upwards-propagation.html Corresponding WebKit commit: <https://trac.webkit.org/changeset/154382>; BUG=116655 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157437

Patch Set 1 #

Patch Set 2 : div with overflow:hidden scrolls when dragging in a text box #

Total comments: 4

Patch Set 3 : div with overflow:hidden scrolls when dragging in a text box #

Patch Set 4 : div with overflow:hidden scrolls when dragging in a text box #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -3 lines) Patch
A LayoutTests/fast/events/autoscroll-upwards-propagation.html View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/autoscroll-upwards-propagation-expected.txt View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
tonikitoo_
7 years, 3 months ago (2013-09-04 20:48:58 UTC) #1
tonikitoo_
On 2013/09/04 20:48:58, a1.gomes wrote: Logic simplified a bit by removing the cross-frame traversal logic, ...
7 years, 3 months ago (2013-09-05 05:39:53 UTC) #2
Julien - ping for review
lgtm https://codereview.chromium.org/23472005/diff/5001/LayoutTests/fast/events/autoscroll-upwards-propagation.html File LayoutTests/fast/events/autoscroll-upwards-propagation.html (right): https://codereview.chromium.org/23472005/diff/5001/LayoutTests/fast/events/autoscroll-upwards-propagation.html#newcode1 LayoutTests/fast/events/autoscroll-upwards-propagation.html:1: <head> Where is Da Doctype: <DOCTYPE html> https://codereview.chromium.org/23472005/diff/5001/LayoutTests/fast/events/autoscroll-upwards-propagation.html#newcode2 ...
7 years, 3 months ago (2013-09-06 00:40:02 UTC) #3
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/23472005/12001
7 years, 3 months ago (2013-09-06 17:11:53 UTC) #4
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=4518
7 years, 3 months ago (2013-09-06 19:43:05 UTC) #5
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/23472005/12001
7 years, 3 months ago (2013-09-09 04:19:49 UTC) #6
commit-bot: I haz the power
7 years, 3 months ago (2013-09-09 04:55:02 UTC) #7
Message was sent while issue was closed.
Change committed as 157437

Powered by Google App Engine
This is Rietveld 408576698