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

Issue 2262373003: Clip PaintLayerScrollableArea::scrollIntoView return to layer bounds (Closed)

Created:
4 years, 4 months ago by sunyunjia
Modified:
4 years, 3 months ago
Reviewers:
bokan, dtapuska
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clip PaintLayerScrollableArea::scrollIntoView return to layer bounds In current implementation, the automatic scroll is always trying to make the focused element visible. However, when the focused element is attached to a smaller parent/ancestor, the browser is still trying to scroll the inner element, causing extra space outside the parent/ancestor(or stuff of the inner element hidden by its ancestor) scrolled by the browser. In this patch, we only scroll the intersection of the focused element and its parent to visible. BUG=437025 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux: linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/29cea456ef3562dd7364e8e6e80aaddc0365a516 Cr-Commit-Position: refs/heads/master@{#415082}

Patch Set 1 #

Patch Set 2 : Solve the intrinsic problem and pass the test #

Total comments: 1

Patch Set 3 : Solve the return in LayoutBox #

Patch Set 4 : indentation #

Total comments: 6

Patch Set 5 : Fix the code style #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-small-size-ancestor.html View 1 2 3 4 1 chunk +28 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 41 (30 generated)
sunyunjia
Hello, please take a look at the patch. Thanks!
4 years, 4 months ago (2016-08-24 01:36:15 UTC) #12
bokan
Approach looks fine to me. Some notes: Please wrap the CL description at 80 columns. ...
4 years, 4 months ago (2016-08-24 18:02:18 UTC) #13
sunyunjia
Added a test and dealt with the empty rect case in LayoutBox. PTAL, Thanks!
4 years, 3 months ago (2016-08-25 19:40:05 UTC) #17
bokan
Test looks good, just some style nits and final comments. https://codereview.chromium.org/2262373003/diff/80001/third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-small-size-ancestor.html File third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-small-size-ancestor.html (right): https://codereview.chromium.org/2262373003/diff/80001/third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-small-size-ancestor.html#newcode4 ...
4 years, 3 months ago (2016-08-26 16:12:14 UTC) #23
sunyunjia
Fixed the nits. PTAL, thanks!
4 years, 3 months ago (2016-08-29 13:57:09 UTC) #28
bokan
lgtm (just make sure the test still fails without the fix). https://codereview.chromium.org/2262373003/diff/140001/third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-small-size-ancestor.html File third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-small-size-ancestor.html (right): ...
4 years, 3 months ago (2016-08-29 13:59:39 UTC) #29
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/2262373003/140001
4 years, 3 months ago (2016-08-29 15:16:46 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/132058)
4 years, 3 months ago (2016-08-29 16:11:03 UTC) #35
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/2262373003/140001
4 years, 3 months ago (2016-08-29 16:51:15 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 3 months ago (2016-08-30 04:15:58 UTC) #39
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 04:18:47 UTC) #41
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/29cea456ef3562dd7364e8e6e80aaddc0365a516
Cr-Commit-Position: refs/heads/master@{#415082}

Powered by Google App Engine
This is Rietveld 408576698