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

Issue 25206002: A height of a table which has position: absolute and box-sizing: border-box ignores half of the bor… (Closed)

Created:
7 years, 2 months ago by yuki.sekiguchi
Modified:
7 years, 1 month ago
CC:
blink-reviews, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

RenderBox::computePositionedLogicalHeightUsing() decides top, bottom and height of the positioned box. LogicalHeightLength is a height specified by CSS. So, whether it contains borders and paddings depends on box-sizing value. There is no difference between a normal block and a table. In a table case, the current code overwrites the CSS height using the height of a RenderBox. The height of a RenderBox always doesn't contain borders and paddings. If a table has box-sizing border-box, the code sets the height which doesn't contain borders and paddings to logicalHeightLength which thinks its value contains borders and paddings. This makes a result height narrower than an expected height. Since we already has a height which doesn't contain borders and padding for a table, we should not call adjustContentBoxLogicalHeightForBoxSizing(). BUG=301393 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159743

Patch Set 1 #

Total comments: 2

Patch Set 2 : /Users/yukisekiguchi/work/chromium-blink/src/third_party/WebKit/LayoutTests/fast/box-sizing/table-c… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -3 lines) Patch
A LayoutTests/fast/box-sizing/css-table-collapse.html View 1 1 chunk +59 lines, -0 lines 0 comments Download
A + LayoutTests/fast/box-sizing/css-table-collapse-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A LayoutTests/fast/box-sizing/css-table-no-collapse.html View 1 1 chunk +58 lines, -0 lines 0 comments Download
A + LayoutTests/fast/box-sizing/css-table-no-collapse-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A LayoutTests/fast/box-sizing/table-collapse.html View 1 1 chunk +55 lines, -0 lines 0 comments Download
A + LayoutTests/fast/box-sizing/table-collapse-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A LayoutTests/fast/box-sizing/table-no-collapse.html View 1 1 chunk +54 lines, -0 lines 0 comments Download
A + LayoutTests/fast/box-sizing/table-no-collapse-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
yuki.sekiguchi
Hi This is my first patch to blink, so if I do wrong, please correct ...
7 years, 2 months ago (2013-09-30 05:34:41 UTC) #1
ojan
On 2013/09/30 05:34:41, yuki.sekiguchi wrote: > Hi > > This is my first patch to ...
7 years, 2 months ago (2013-10-02 00:52:58 UTC) #2
yuki.sekiguchi
Thank you for reviewing! On 2013/10/02 00:52:58, ojan wrote: > On 2013/09/30 05:34:41, yuki.sekiguchi wrote: ...
7 years, 2 months ago (2013-10-02 07:58:18 UTC) #3
ojan
Julien might have useful insights here since it involves table layout. On 2013/10/02 07:58:18, yuki.sekiguchi ...
7 years, 2 months ago (2013-10-03 00:03:38 UTC) #4
Julien - ping for review
I think this change is related to the code in RenderTable::convertStyleLogicalHeightToComputedHeight(), more specifically this comment: ...
7 years, 2 months ago (2013-10-03 18:04:01 UTC) #5
yuki.sekiguchi
Hi ojan, Thank you for reviewing. On 2013/10/03 00:03:38, ojan wrote: > That's not what ...
7 years, 2 months ago (2013-10-04 12:14:38 UTC) #6
yuki.sekiguchi
Hi Julien, Thank you for reviewing. On 2013/10/03 18:04:01, Julien Chaffraix wrote: > I think ...
7 years, 2 months ago (2013-10-04 12:22:12 UTC) #7
yuki.sekiguchi
Sorry, I sent this too early.. On 2013/10/04 12:22:12, yuki.sekiguchi wrote: > convertStyleLogicalHeightToComputedHeight() converts CSS ...
7 years, 2 months ago (2013-10-04 12:26:37 UTC) #8
ojan
lgtm
7 years, 2 months ago (2013-10-16 01:50:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yuki.sekiguchi@access-company.com/25206002/9001
7 years, 2 months ago (2013-10-16 01:51:28 UTC) #10
commit-bot: I haz the power
7 years, 2 months ago (2013-10-16 10:03:40 UTC) #11
Message was sent while issue was closed.
Change committed as 159743

Powered by Google App Engine
This is Rietveld 408576698