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

Issue 2893833004: When moving past a left-hand scrollbar, don't jump way outside the content box. (Closed)

Created:
3 years, 7 months ago by mstensho (USE GERRIT)
Modified:
3 years, 7 months ago
Reviewers:
cbiesinger, eae
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

When moving past a left-hand scrollbar, don't jump way outside the content box. We handle rendering, scrolling and scrollbars quite poorly if a scrollbar is actually wider than its containing block. See crbug.com/724255 for more info on this corner-case. We end up with negative values in parts of the code where they are not expected. This CL is just a simple regression fix to at least make sure that scrollWidth doesn't get messed up by left-hand scrollbars. AngularJS depends on this. BUG=720227 Review-Url: https://codereview.chromium.org/2893833004 Cr-Commit-Position: refs/heads/master@{#474226} Committed: https://chromium.googlesource.com/chromium/src/+/d457f863f78941ed376b463ee39476b1a1852797

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/fast/scrolling/content-box-smaller-than-scrollbar.html View 1 chunk +46 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/scrolling/jquery-rtl-scroll-type.html View 1 chunk +34 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
mstensho (USE GERRIT)
Scrollbars really act up when put on a block that's smaller than the scrollbar itself. ...
3 years, 7 months ago (2017-05-19 11:43:35 UTC) #6
cbiesinger
I guess this is not terrible but wouldn't we be better off changing UpdateLogicalWidth to ...
3 years, 7 months ago (2017-05-19 16:20:31 UTC) #7
mstensho (USE GERRIT)
On 2017/05/19 16:20:31, cbiesinger wrote: > I guess this is not terrible but wouldn't we ...
3 years, 7 months ago (2017-05-19 17:30:36 UTC) #8
cbiesinger
On 2017/05/19 17:30:36, mstensho wrote: > On 2017/05/19 16:20:31, cbiesinger wrote: > > I guess ...
3 years, 7 months ago (2017-05-19 21:50:45 UTC) #9
mstensho (USE GERRIT)
On 2017/05/19 21:50:45, cbiesinger wrote: > On 2017/05/19 17:30:36, mstensho wrote: > > On 2017/05/19 ...
3 years, 7 months ago (2017-05-22 09:29:30 UTC) #10
mstensho (USE GERRIT)
On 2017/05/22 09:29:30, mstensho wrote: > On 2017/05/19 21:50:45, cbiesinger wrote: > > On 2017/05/19 ...
3 years, 7 months ago (2017-05-23 14:19:13 UTC) #11
cbiesinger
so lgtm to fix the Angular issue but I do think that something like https://codereview.chromium.org/2897033002/ ...
3 years, 7 months ago (2017-05-23 21:15:32 UTC) #12
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/2893833004/1
3 years, 7 months ago (2017-05-24 05:51:24 UTC) #14
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/301612)
3 years, 7 months ago (2017-05-24 08:52:46 UTC) #16
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/2893833004/1
3 years, 7 months ago (2017-05-24 09:01:23 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-24 09:45:27 UTC) #21
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/d457f863f78941ed376b463ee394...

Powered by Google App Engine
This is Rietveld 408576698