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

Issue 2441683002: Prevent AutoscrollForSelection when selecting text in a fixed-position element. (Closed)

Created:
4 years, 2 months ago by sunyunjia
Modified:
4 years, 1 month ago
Reviewers:
bokan
CC:
chromium-reviews, blink-reviews, dtapuska+blinkwatch_chromium.org, Navid Zolghadr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent AutoscrollForSelection when selecting text in a fixed-position element. AutoscrollForSelection is triggered when selecting text and dragging mouse out of the container. However, we don't want selecting text in a fixed-position element triggers autoscroll otherwhere. Inside findAutoscrollable, when we find the object is inside a fixed-position element, we should prevent AutoscrollForSelection from happening. BUG=655489 Committed: https://crrev.com/53546e297f782849d9da8004508d0b85c2fd931c Cr-Commit-Position: refs/heads/master@{#427146}

Patch Set 1 #

Patch Set 2 : findAutoscrollable should return 0 for fixed-position elements #

Total comments: 4

Patch Set 3 : Edited the test. #

Total comments: 1

Patch Set 4 : Change return value from 0 to nullptr. #

Patch Set 5 : Format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/events/autoscroll-disabled-in-fix.html View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 44 (29 generated)
sunyunjia
Hi David, Can you please take a look at this? Also, can you give me ...
4 years, 2 months ago (2016-10-20 18:56:25 UTC) #5
bokan
Hi Sandra, I don't think this is a good way to fix this, it fixes ...
4 years, 2 months ago (2016-10-21 14:36:30 UTC) #8
sunyunjia
PTAL, thanks!
4 years, 1 month ago (2016-10-24 13:09:35 UTC) #14
bokan
Thanks, this looks better. https://codereview.chromium.org/2441683002/diff/20001/third_party/WebKit/LayoutTests/fast/events/autoscroll-disabled-in-fix.html File third_party/WebKit/LayoutTests/fast/events/autoscroll-disabled-in-fix.html (right): https://codereview.chromium.org/2441683002/diff/20001/third_party/WebKit/LayoutTests/fast/events/autoscroll-disabled-in-fix.html#newcode18 third_party/WebKit/LayoutTests/fast/events/autoscroll-disabled-in-fix.html:18: document.body.offsetTop; You shouldn't need this. ...
4 years, 1 month ago (2016-10-24 13:22:00 UTC) #15
sunyunjia
https://codereview.chromium.org/2441683002/diff/20001/third_party/WebKit/LayoutTests/fast/events/autoscroll-disabled-in-fix.html File third_party/WebKit/LayoutTests/fast/events/autoscroll-disabled-in-fix.html (right): https://codereview.chromium.org/2441683002/diff/20001/third_party/WebKit/LayoutTests/fast/events/autoscroll-disabled-in-fix.html#newcode18 third_party/WebKit/LayoutTests/fast/events/autoscroll-disabled-in-fix.html:18: document.body.offsetTop; On 2016/10/24 13:22:00, bokan wrote: > You shouldn't ...
4 years, 1 month ago (2016-10-24 14:10:25 UTC) #16
bokan
lgtm % nit https://codereview.chromium.org/2441683002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2441683002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1014 third_party/WebKit/Source/core/layout/LayoutBox.cpp:1014: return 0; nit: return nullptr
4 years, 1 month ago (2016-10-24 14:11:30 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2441683002/60001
4 years, 1 month ago (2016-10-24 14:18:38 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/287777)
4 years, 1 month ago (2016-10-24 14:45:05 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2441683002/80001
4 years, 1 month ago (2016-10-24 14:59:41 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/151220)
4 years, 1 month ago (2016-10-24 16:11:50 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2441683002/80001
4 years, 1 month ago (2016-10-24 16:44:36 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/150919)
4 years, 1 month ago (2016-10-24 17:41:59 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2441683002/80001
4 years, 1 month ago (2016-10-24 20:46:45 UTC) #40
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-10-24 21:01:05 UTC) #42
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 21:04:18 UTC) #44
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/53546e297f782849d9da8004508d0b85c2fd931c
Cr-Commit-Position: refs/heads/master@{#427146}

Powered by Google App Engine
This is Rietveld 408576698