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

Issue 2528253003: [table] Stretching tables when needed due to self-alignment properties (Closed)

Created:
4 years ago by jfernandez
Modified:
3 years, 9 months ago
CC:
chromium-reviews, jfernandez, szager+layoutwatch_chromium.org, zoltan1, Manuel Rego, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, svillar, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[table] Stretching tables when needed due to self-alignment properties The Self-Alignment properties, align-self and justify-self, apply to tables when they are flex or grid items. This patch addresses only the issue of applying the stretch value, which effectively affects the size of the table in those cases. The justify-self applies also to tables when they are block-level boxes, but the alignment feature is still not implemented for that case, so for now the related test cases expect no stretching. Other values of alignment aren't implemented yet for tables, but those will be part of future CLs, once somebody files the appropriated bug. BUG=667785 Review-Url: https://codereview.chromium.org/2528253003 Cr-Commit-Position: refs/heads/master@{#454743} Committed: https://chromium.googlesource.com/chromium/src/+/a90dba1f2dd094e51229dd2e5e059c6b53cee93a

Patch Set 1 #

Total comments: 4

Patch Set 2 : Applied suggested changes. #

Total comments: 2

Patch Set 3 : Applied additional suggested changes. #

Total comments: 6

Patch Set 4 : Patch rebased and applied suggested changes. #

Total comments: 1

Patch Set 5 : Removed incorrect assertions. #

Patch Set 6 : Removed another incorrect assert. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -45 lines) Patch
D third_party/WebKit/LayoutTests/css3/flexbox/flexitem-expected.txt View 1 2 1 chunk +0 lines, -26 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html View 1 2 3 1 chunk +142 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFullScreen.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.cpp View 1 2 3 2 chunks +25 lines, -16 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
jfernandez
Sent for review.
4 years ago (2016-11-28 12:15:12 UTC) #3
mstensho (USE GERRIT)
https://codereview.chromium.org/2528253003/diff/1/third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html File third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html (right): https://codereview.chromium.org/2528253003/diff/1/third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html#newcode26 third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html:26: border-spacing: 0px; border-spacing doesn't apply to table cells. https://codereview.chromium.org/2528253003/diff/1/third_party/WebKit/Source/core/layout/LayoutTable.cpp ...
4 years ago (2016-11-28 12:54:31 UTC) #5
jfernandez
4 years ago (2016-11-29 14:55:55 UTC) #6
jfernandez
https://codereview.chromium.org/2528253003/diff/1/third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html File third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html (right): https://codereview.chromium.org/2528253003/diff/1/third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html#newcode26 third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html:26: border-spacing: 0px; On 2016/11/28 12:54:31, mstensho wrote: > border-spacing ...
4 years ago (2016-11-29 16:03:33 UTC) #7
dgrogan
https://codereview.chromium.org/2528253003/diff/20001/third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html File third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html (right): https://codereview.chromium.org/2528253003/diff/20001/third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html#newcode33 third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html:33: <p>Regular block container of a table element and 1 ...
4 years ago (2016-11-30 01:03:22 UTC) #8
jfernandez
New patch, with the suggested changes, sent out for review.
3 years, 11 months ago (2017-01-13 12:45:56 UTC) #9
mstensho (USE GERRIT)
https://codereview.chromium.org/2528253003/diff/60001/third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html File third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html (right): https://codereview.chromium.org/2528253003/diff/60001/third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html#newcode38 third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html:38: <body onload="checkLayout('.block')"> Probably no need for the onload handler. ...
3 years, 10 months ago (2017-02-22 13:37:04 UTC) #11
jfernandez
Submitted a new patch for review, PTAL. https://codereview.chromium.org/2528253003/diff/60001/third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html File third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html (right): https://codereview.chromium.org/2528253003/diff/60001/third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html#newcode38 third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html:38: <body onload="checkLayout('.block')"> ...
3 years, 9 months ago (2017-03-02 11:12:58 UTC) #12
mstensho (USE GERRIT)
lgtm https://codereview.chromium.org/2528253003/diff/80001/third_party/WebKit/Source/core/layout/LayoutTable.cpp File third_party/WebKit/Source/core/layout/LayoutTable.cpp (right): https://codereview.chromium.org/2528253003/diff/80001/third_party/WebKit/Source/core/layout/LayoutTable.cpp#newcode639 third_party/WebKit/Source/core/layout/LayoutTable.cpp:639: LayoutUnit currentAvailableLogicalHeight = In the future, please push ...
3 years, 9 months ago (2017-03-02 12:26:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2528253003/80001
3 years, 9 months ago (2017-03-02 12:37:14 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/319911)
3 years, 9 months ago (2017-03-02 13:34:11 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2528253003/120001
3 years, 9 months ago (2017-03-04 00:19:58 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:120001) as https://chromium.googlesource.com/chromium/src/+/a90dba1f2dd094e51229dd2e5e059c6b53cee93a
3 years, 9 months ago (2017-03-04 01:37:39 UTC) #23
jfernandez
3 years, 9 months ago (2017-03-09 09:31:43 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:120001) has been created in
https://codereview.chromium.org/2740063003/ by jfernandez@igalia.com.

The reason for reverting is: This patch is causing several important
regressions..

Powered by Google App Engine
This is Rietveld 408576698