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

Issue 988443003: Don't add artifical 1 pixel width to empty tables (Closed)

Created:
5 years, 9 months ago by rhogan
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, Dominik Röttsches, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Don't add artifical 1 pixel width to empty tables Don't use a dummy width of 1 pixel for empty columns when calculating the width of tables. Instead let them be zero width so that empty tables get a zero width. We still need a dummy value for empty columns when tracking the allocation of width to columns so do retain that. BUG=424338 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197544

Patch Set 1 #

Patch Set 2 : Updated #

Patch Set 3 : Updated #

Patch Set 4 : Updated #

Patch Set 5 : Updated #

Total comments: 4

Patch Set 6 : Updated #

Patch Set 7 : Updated #

Patch Set 8 : Updated #

Total comments: 8

Patch Set 9 : Updated #

Total comments: 4

Patch Set 10 : Updated #

Total comments: 1

Patch Set 11 : Updated #

Total comments: 1

Patch Set 12 : Updated #

Patch Set 13 : Updated #

Patch Set 14 : Updated #

Total comments: 1

Patch Set 15 : Updated #

Patch Set 16 : Updated #

Patch Set 17 : Updated #

Patch Set 18 : Updated #

Patch Set 19 : Updated #

Patch Set 20 : Updated #

Patch Set 21 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -243 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +28 lines, -1 line 0 comments Download
M LayoutTests/accessibility/table-detection.html View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/css2.1/20110323/abspos-containing-block-initial-004e-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/css2.1/20110323/abspos-containing-block-initial-004f-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/table/auto-100-percent-width-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A LayoutTests/fast/table/empty-cells-and-percentage-width-content.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/empty-cells-and-percentage-width-content-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/empty-cells-spread.html View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/empty-cells-spread-2.html View 1 2 3 4 5 6 7 8 9 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/empty-cells-spread-2-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/empty-cells-spread-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/table/fixed-widths-exceed-available.html View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/table/large-shrink-wrapped-width.html View 5 3 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/table/table-cell-split-expected.png View 5 Binary file 0 comments Download
M LayoutTests/fast/table/table-cell-split-expected.txt View 1 2 3 4 5 1 chunk +6 lines, -6 lines 0 comments Download
M LayoutTests/fast/table/table-insert-before-non-anonymous-block-expected.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M LayoutTests/fast/table/table-insert-before-non-anonymous-block-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/table/table-section-split-with-after-content-expected.png View 5 Binary file 0 comments Download
M LayoutTests/fast/table/table-section-split-with-after-content-expected.txt View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/platform/linux/css2.1/20110323/margin-applies-to-015-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/linux/fast/block/positioning/negative-right-pos-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/linux/fast/css/acid2-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/platform/linux/fast/css/acid2-pixel-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/platform/linux/fast/css/percentage-non-integer-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M LayoutTests/platform/linux/fast/css/percentage-non-integer-expected.txt View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M LayoutTests/platform/linux/fast/dynamic/insert-before-table-part-in-continuation-expected.txt View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/platform/linux/fast/repaint/table-cell-move-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +9 lines, -9 lines 0 comments Download
M LayoutTests/platform/linux/fast/table/012-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/linux/fast/table/cell-absolute-child-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -6 lines 0 comments Download
M LayoutTests/platform/linux/fast/table/empty-cells-expected.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M LayoutTests/platform/linux/fast/table/empty-cells-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +21 lines, -21 lines 0 comments Download
M LayoutTests/platform/linux/fast/table/prepend-in-anonymous-table-expected.txt View 1 2 3 4 5 6 chunks +78 lines, -78 lines 0 comments Download
M LayoutTests/platform/linux/http/tests/misc/acid2-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/platform/linux/http/tests/misc/acid2-pixel-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/platform/linux/ietestcenter/css3/bordersbackgrounds/border-radius-applies-to-007-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/linux/tables/mozilla/bugs/bug100334-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/platform/linux/tables/mozilla/bugs/bug1188-expected.txt View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/platform/linux/tables/mozilla/bugs/bug16012-expected.png View 5 Binary file 0 comments Download
M LayoutTests/platform/linux/tables/mozilla/bugs/bug16012-expected.txt View 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/platform/linux/tables/mozilla/bugs/bug3037-1-expected.txt View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/platform/linux/tables/mozilla_expected_failures/other/empty_cells-expected.txt View 1 2 3 4 5 4 chunks +32 lines, -32 lines 0 comments Download
A + LayoutTests/platform/win/fast/table/auto-100-percent-width-expected.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Binary file 0 comments Download
M LayoutTests/svg/custom/stf-container-with-intrinsic-ratio-svg.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/tables/mozilla/bugs/bug222336-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -7 lines 0 comments Download
M Source/core/layout/TableLayoutAlgorithmAuto.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +5 lines, -1 line 0 comments Download
M Source/core/layout/TableLayoutAlgorithmAuto.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +20 lines, -14 lines 0 comments Download

Messages

Total messages: 56 (22 generated)
rhogan
5 years, 9 months ago (2015-03-23 20:16:55 UTC) #2
dsinclair
https://codereview.chromium.org/988443003/diff/80001/Source/core/layout/TableLayoutAlgorithmAuto.cpp File Source/core/layout/TableLayoutAlgorithmAuto.cpp (right): https://codereview.chromium.org/988443003/diff/80001/Source/core/layout/TableLayoutAlgorithmAuto.cpp#newcode546 Source/core/layout/TableLayoutAlgorithmAuto.cpp:546: totalFixed += std::max<int>(1, m_layoutStruct[i].effectiveMaxLogicalWidth); We do this a bunch ...
5 years, 9 months ago (2015-03-24 00:03:48 UTC) #3
dsinclair
5 years, 9 months ago (2015-03-24 00:03:56 UTC) #5
mstensho (USE GERRIT)
Should add a layout test? https://codereview.chromium.org/988443003/diff/80001/Source/core/layout/TableLayoutAlgorithmAuto.cpp File Source/core/layout/TableLayoutAlgorithmAuto.cpp (right): https://codereview.chromium.org/988443003/diff/80001/Source/core/layout/TableLayoutAlgorithmAuto.cpp#newcode546 Source/core/layout/TableLayoutAlgorithmAuto.cpp:546: totalFixed += std::max<int>(1, m_layoutStruct[i].effectiveMaxLogicalWidth); ...
5 years, 9 months ago (2015-03-24 08:36:37 UTC) #7
rhogan
https://codereview.chromium.org/988443003/diff/80001/Source/core/layout/TableLayoutAlgorithmAuto.cpp File Source/core/layout/TableLayoutAlgorithmAuto.cpp (right): https://codereview.chromium.org/988443003/diff/80001/Source/core/layout/TableLayoutAlgorithmAuto.cpp#newcode546 Source/core/layout/TableLayoutAlgorithmAuto.cpp:546: totalFixed += std::max<int>(1, m_layoutStruct[i].effectiveMaxLogicalWidth); On 2015/03/24 at 08:36:37, mstensho ...
5 years, 9 months ago (2015-03-24 20:06:12 UTC) #8
mstensho (USE GERRIT)
https://codereview.chromium.org/988443003/diff/80001/Source/core/layout/TableLayoutAlgorithmAuto.cpp File Source/core/layout/TableLayoutAlgorithmAuto.cpp (right): https://codereview.chromium.org/988443003/diff/80001/Source/core/layout/TableLayoutAlgorithmAuto.cpp#newcode546 Source/core/layout/TableLayoutAlgorithmAuto.cpp:546: totalFixed += std::max<int>(1, m_layoutStruct[i].effectiveMaxLogicalWidth); On 2015/03/24 20:06:11, rhogan wrote: ...
5 years, 9 months ago (2015-03-25 10:10:52 UTC) #9
rhogan
On 2015/03/25 at 10:10:52, mstensho wrote: > https://codereview.chromium.org/988443003/diff/80001/Source/core/layout/TableLayoutAlgorithmAuto.cpp > File Source/core/layout/TableLayoutAlgorithmAuto.cpp (right): > > https://codereview.chromium.org/988443003/diff/80001/Source/core/layout/TableLayoutAlgorithmAuto.cpp#newcode546 ...
5 years, 8 months ago (2015-04-06 17:54:38 UTC) #10
mstensho (USE GERRIT)
On 2015/04/06 17:54:38, rhogan wrote: > On 2015/03/25 at 10:10:52, mstensho wrote: > > > ...
5 years, 8 months ago (2015-04-13 22:02:47 UTC) #11
rhogan
On 2015/04/13 at 22:02:47, mstensho wrote: > I think so. I.e. get rid of the ...
5 years, 7 months ago (2015-05-16 12:04:49 UTC) #12
mstensho (USE GERRIT)
https://codereview.chromium.org/988443003/diff/140001/LayoutTests/fast/table/large-shrink-wrapped-width.html File LayoutTests/fast/table/large-shrink-wrapped-width.html (right): https://codereview.chromium.org/988443003/diff/140001/LayoutTests/fast/table/large-shrink-wrapped-width.html#newcode30 LayoutTests/fast/table/large-shrink-wrapped-width.html:30: <!-- The 1 px extra is from the align=right ...
5 years, 7 months ago (2015-05-18 08:45:39 UTC) #13
rhogan
https://codereview.chromium.org/988443003/diff/140001/Source/core/layout/TableLayoutAlgorithmAuto.cpp File Source/core/layout/TableLayoutAlgorithmAuto.cpp (right): https://codereview.chromium.org/988443003/diff/140001/Source/core/layout/TableLayoutAlgorithmAuto.cpp#newcode45 Source/core/layout/TableLayoutAlgorithmAuto.cpp:45: static bool isEmptyCell(LayoutObject* object) On 2015/05/18 at 08:45:38, mstensho ...
5 years, 7 months ago (2015-05-19 19:45:42 UTC) #14
mstensho (USE GERRIT)
https://codereview.chromium.org/988443003/diff/140001/Source/core/layout/TableLayoutAlgorithmAuto.cpp File Source/core/layout/TableLayoutAlgorithmAuto.cpp (right): https://codereview.chromium.org/988443003/diff/140001/Source/core/layout/TableLayoutAlgorithmAuto.cpp#newcode629 Source/core/layout/TableLayoutAlgorithmAuto.cpp:629: if (available > 0) { Why not remove this ...
5 years, 7 months ago (2015-05-20 09:34:22 UTC) #15
rhogan
On 2015/05/20 at 09:34:22, mstensho wrote: > https://codereview.chromium.org/988443003/diff/140001/Source/core/layout/TableLayoutAlgorithmAuto.cpp#newcode629 > Source/core/layout/TableLayoutAlgorithmAuto.cpp:629: if (available > 0) { ...
5 years, 6 months ago (2015-06-01 16:51:34 UTC) #16
mstensho (USE GERRIT)
lgtm https://codereview.chromium.org/988443003/diff/200001/Source/core/layout/TableLayoutAlgorithmAuto.cpp File Source/core/layout/TableLayoutAlgorithmAuto.cpp (right): https://codereview.chromium.org/988443003/diff/200001/Source/core/layout/TableLayoutAlgorithmAuto.cpp#newcode29 Source/core/layout/TableLayoutAlgorithmAuto.cpp:29: #include "core/layout/LayoutText.h" Don't need to include this.
5 years, 6 months ago (2015-06-01 18:01:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988443003/220001
5 years, 6 months ago (2015-06-02 18:19:56 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/64840)
5 years, 6 months ago (2015-06-02 19:25:52 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988443003/220001
5 years, 6 months ago (2015-06-02 20:00:42 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/64536)
5 years, 6 months ago (2015-06-02 22:01:10 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988443003/240001
5 years, 6 months ago (2015-06-03 18:21:14 UTC) #29
commit-bot: I haz the power
Committed patchset #13 (id:240001) as https://src.chromium.org/viewvc/blink?view=rev&revision=196425
5 years, 6 months ago (2015-06-03 19:35:17 UTC) #30
rhogan
Hi Morten, This was rolled out due to crbug.com/497759 and crbug.com/497073 - both of which ...
5 years, 6 months ago (2015-06-16 18:21:26 UTC) #31
mstensho (USE GERRIT)
lgtm. One thing I'd like to ask from you for future CLs: could you please ...
5 years, 6 months ago (2015-06-16 18:44:39 UTC) #32
rhogan
On 2015/06/16 at 18:44:39, mstensho wrote: > lgtm. > > One thing I'd like to ...
5 years, 6 months ago (2015-06-16 18:50:33 UTC) #33
mstensho (USE GERRIT)
On 2015/06/16 18:50:33, rhogan wrote: > On 2015/06/16 at 18:44:39, mstensho wrote: > > lgtm. ...
5 years, 6 months ago (2015-06-16 18:57:32 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988443003/340001
5 years, 6 months ago (2015-06-21 09:48:03 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/35949)
5 years, 6 months ago (2015-06-21 09:55:13 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988443003/360001
5 years, 6 months ago (2015-06-21 09:58:27 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/59957)
5 years, 6 months ago (2015-06-21 10:00:23 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988443003/400001
5 years, 6 months ago (2015-06-21 15:37:35 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/59962)
5 years, 6 months ago (2015-06-21 17:08:54 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988443003/400001
5 years, 6 months ago (2015-06-21 18:34:23 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/59969)
5 years, 6 months ago (2015-06-21 20:05:38 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988443003/400001
5 years, 6 months ago (2015-06-21 21:12:47 UTC) #55
commit-bot: I haz the power
5 years, 6 months ago (2015-06-21 22:40:58 UTC) #56
Message was sent while issue was closed.
Committed patchset #21 (id:400001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197544

Powered by Google App Engine
This is Rietveld 408576698