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

Issue 1459743002: Don't update the logical width when a scrollbar gets added (Closed)

Created:
5 years, 1 month ago by cbiesinger
Modified:
4 years, 10 months ago
Reviewers:
skobes, szager1, cbiesinger1
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't update the logical width when a scrollbar gets added This behavior is incorrect because the content width of a CSS box *includes* the scrollbar width and should therefore not change. See the layout test change in this patch -- Because min-width: 100px includes the scrollbar, the clientWidth should be less than that. R=szager@chromium.org,skobes@chromium.org BUG=556717, 512229, 542197 Committed: https://crrev.com/80a9f8200b090daac5d849bfe6e304a1eaa8f6cc Cr-Commit-Position: refs/heads/master@{#360529}

Patch Set 1 #

Total comments: 3

Patch Set 2 : also remove height call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -10 lines) Patch
M third_party/WebKit/LayoutTests/css3/flexbox/overflow-auto-resizes-correctly.html View 2 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/flexbox/overflow-auto-resizes-correctly-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 1 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1459743002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1459743002/1
5 years, 1 month ago (2015-11-18 22:16:19 UTC) #2
cbiesinger
Stefan - interestingly, *with* this patch vbox.clientWidth is closer to vbox.scrollWidth than without. Either way, ...
5 years, 1 month ago (2015-11-18 22:16:27 UTC) #3
szager1
¯\_(ツ)_/¯ lgtm
5 years, 1 month ago (2015-11-18 22:35:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1459743002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1459743002/1
5 years, 1 month ago (2015-11-18 22:40:38 UTC) #8
skobes
https://codereview.chromium.org/1459743002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlock.cpp File third_party/WebKit/Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1459743002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlock.cpp#newcode897 third_party/WebKit/Source/core/layout/LayoutBlock.cpp:897: setLogicalHeight(logicalHeightExcludingScrollbar + scrollbarLogicalHeight()); Is the setLogicalHeight call wrong for ...
5 years, 1 month ago (2015-11-18 22:45:24 UTC) #9
cbiesinger
https://codereview.chromium.org/1459743002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlock.cpp File third_party/WebKit/Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1459743002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlock.cpp#newcode897 third_party/WebKit/Source/core/layout/LayoutBlock.cpp:897: setLogicalHeight(logicalHeightExcludingScrollbar + scrollbarLogicalHeight()); So, that is a very good ...
5 years, 1 month ago (2015-11-18 22:52:51 UTC) #10
cbiesinger
Actually I decided to just reuse this one for the height. New patch uploaded.
5 years, 1 month ago (2015-11-18 23:00:24 UTC) #11
skobes
lgtm https://codereview.chromium.org/1459743002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlock.cpp File third_party/WebKit/Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1459743002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlock.cpp#newcode897 third_party/WebKit/Source/core/layout/LayoutBlock.cpp:897: setLogicalHeight(logicalHeightExcludingScrollbar + scrollbarLogicalHeight()); On 2015/11/18 22:52:51, cbiesinger wrote: ...
5 years, 1 month ago (2015-11-18 23:01:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1459743002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1459743002/20001
5 years, 1 month ago (2015-11-18 23:04:11 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/97956)
5 years, 1 month ago (2015-11-19 01:18:17 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1459743002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1459743002/20001
5 years, 1 month ago (2015-11-19 04:17:30 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-19 05:31:44 UTC) #20
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/80a9f8200b090daac5d849bfe6e304a1eaa8f6cc Cr-Commit-Position: refs/heads/master@{#360529}
5 years, 1 month ago (2015-11-19 05:33:04 UTC) #21
cbiesinger
4 years, 10 months ago (2016-02-12 20:50:46 UTC) #22
Message was sent while issue was closed.
For future reference, this change basically updated/partially reverted
https://codereview.chromium.org/1295933003

Powered by Google App Engine
This is Rietveld 408576698