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

Issue 1682453004: Treat <table> widths of 0 as auto. (Closed)

Created:
4 years, 10 months ago by dgrogan
Modified:
4 years, 10 months ago
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 scale columns in an inner table when the outer table has width:0px The bug has an old repro that depends on whether the inner table is floated. This no longer seems to have an impact on our behavior. BUG=244182 Committed: https://crrev.com/2d44230a5d4a9f92e5fc9fb2777847f594f37311 Cr-Commit-Position: refs/heads/master@{#374799}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : just check in shouldScaleColumns #

Total comments: 4

Patch Set 3 : rename test; factor out isAuto method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/fast/table/auto-table-columns-dont-scale.html View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/table/auto-table-columns-dont-scale-expected.txt View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.cpp View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (9 generated)
dgrogan
Morten, could you review this? I am not sure this is the right approach to ...
4 years, 10 months ago (2016-02-09 03:27:19 UTC) #3
mstensho (USE GERRIT)
I think the original CL - https://codereview.chromium.org/15650011/ - was closer to what we want. We ...
4 years, 10 months ago (2016-02-09 10:52:46 UTC) #6
dgrogan
Good point about not affecting fixed-layout tables. I tried to make a fixed-layout test that ...
4 years, 10 months ago (2016-02-10 02:47:56 UTC) #7
mstensho (USE GERRIT)
https://codereview.chromium.org/1682453004/diff/20001/third_party/WebKit/Source/core/layout/LayoutTable.cpp File third_party/WebKit/Source/core/layout/LayoutTable.cpp (right): https://codereview.chromium.org/1682453004/diff/20001/third_party/WebKit/Source/core/layout/LayoutTable.cpp#newcode298 third_party/WebKit/Source/core/layout/LayoutTable.cpp:298: if ((styleMaxLogicalWidth.isSpecified() && !styleMaxLogicalWidth.isNegative()) || styleMaxLogicalWidth.isIntrinsic()) { On 2016/02/10 ...
4 years, 10 months ago (2016-02-10 10:04:09 UTC) #9
dgrogan
https://codereview.chromium.org/1682453004/diff/40001/third_party/WebKit/LayoutTests/fast/table/zero-width-on-table-is-auto.html File third_party/WebKit/LayoutTests/fast/table/zero-width-on-table-is-auto.html (right): https://codereview.chromium.org/1682453004/diff/40001/third_party/WebKit/LayoutTests/fast/table/zero-width-on-table-is-auto.html#newcode10 third_party/WebKit/LayoutTests/fast/table/zero-width-on-table-is-auto.html:10: <table id="outerTable" style="width:0px;" class="yellow" data-expected-width="200"> On 2016/02/10 10:04:09, mstensho ...
4 years, 10 months ago (2016-02-10 18:38:26 UTC) #10
mstensho (USE GERRIT)
lgtm
4 years, 10 months ago (2016-02-10 19:50:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1682453004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1682453004/60001
4 years, 10 months ago (2016-02-10 20:27:08 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/178311)
4 years, 10 months ago (2016-02-10 22:25:28 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1682453004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1682453004/60001
4 years, 10 months ago (2016-02-10 22:34:59 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 10 months ago (2016-02-11 00:13:14 UTC) #18
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:33:04 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2d44230a5d4a9f92e5fc9fb2777847f594f37311
Cr-Commit-Position: refs/heads/master@{#374799}

Powered by Google App Engine
This is Rietveld 408576698