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

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

Created:
5 years ago by cbiesinger
Modified:
5 years ago
Reviewers:
skobes, szager1
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2564
Target Ref:
refs/pending/branch-heads/2564
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 Review URL: https://codereview.chromium.org/1459743002 Cr-Commit-Position: refs/heads/master@{#360529} (cherry picked from commit 80a9f8200b090daac5d849bfe6e304a1eaa8f6cc) Committed: https://chromium.googlesource.com/chromium/src/+/fa6315223cc325a4e41ffbc777dd567e323513ce

Patch Set 1 #

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 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
cbiesinger
Committed patchset #1 (id:1) manually as fa6315223cc325a4e41ffbc777dd567e323513ce.
5 years ago (2015-12-01 21:15:58 UTC) #2
skobes
lgtm Nit: be careful saying "content width" as this is a different thing. LayoutBox::contentLogicalWidth() and ...
5 years ago (2015-12-01 21:25:05 UTC) #3
cbiesinger
5 years ago (2015-12-01 21:26:24 UTC) #4
Message was sent while issue was closed.
On 2015/12/01 21:25:05, skobes wrote:
> lgtm
> 
> Nit: be careful saying "content width" as this is a different thing. 
> LayoutBox::contentLogicalWidth() and LayoutBox::contentLogicalHeight()
actually
> do exclude the scrollbars.
> 
> But the patch looks correct given s/content width/logical width/ in change
> description.

This was just a merge from trunk. But I was actually referring to the CSS
concept of content width, which does include the scrollbar, unlike our concept
of content width, which does not.

Powered by Google App Engine
This is Rietveld 408576698