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

Issue 2013693002: [css-tables] Set table and cell widths dirty when section border changes (Closed)

Created:
4 years, 7 months ago by dgrogan
Modified:
4 years, 5 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

[css-tables] Set table and cell widths dirty when section border changes When borders collapse, section borders affect both the table width and cell widths. Previously, tables and cells would use the old width when a section's border changed. BUG=613728 Committed: https://crrev.com/596c28c4ab1759719fe00b8319571fba398f48e1 Cr-Commit-Position: refs/heads/master@{#404994}

Patch Set 1 #

Total comments: 9

Patch Set 2 : refactor and remove some table->setPreferredLogicalWidthsDirty #

Total comments: 1

Patch Set 3 : now with layout test #

Total comments: 2

Patch Set 4 : add back table->setPreferredLogicalWidthsDirty #

Patch Set 5 : Tot #

Patch Set 6 : comments about setChildNeedsLayout #

Total comments: 1

Patch Set 7 : add optional param and remove new layout test #

Total comments: 8

Patch Set 8 : respond to comments #

Patch Set 9 : ToT and corresponding update to cached-change-tbody-border-width-expected.txt #

Patch Set 10 : re-add layout test #

Total comments: 2

Patch Set 11 : switched from bool to enum #

Patch Set 12 : handle case where row is null #

Messages

Total messages: 49 (14 generated)
dgrogan
Morten, can you review the logic? And if you know the TODOs off the top ...
4 years, 7 months ago (2016-05-25 01:12:18 UTC) #2
mstensho (USE GERRIT)
https://codereview.chromium.org/2013693002/diff/1/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp File third_party/WebKit/Source/core/layout/LayoutTableRow.cpp (right): https://codereview.chromium.org/2013693002/diff/1/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp#newcode80 third_party/WebKit/Source/core/layout/LayoutTableRow.cpp:80: // TODO(dgrogan): Do we need to setPreferredLogicalWidthsDirty even when ...
4 years, 7 months ago (2016-05-25 12:18:28 UTC) #3
Xianzhu
On 2016/05/25 01:12:18, dgrogan wrote: > Morten, can you review the logic? And if you ...
4 years, 7 months ago (2016-05-25 16:22:01 UTC) #4
dgrogan
https://codereview.chromium.org/2013693002/diff/1/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp File third_party/WebKit/Source/core/layout/LayoutTableSection.cpp (right): https://codereview.chromium.org/2013693002/diff/1/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp#newcode119 third_party/WebKit/Source/core/layout/LayoutTableSection.cpp:119: // TODO(dgrogan): Where should this go? It is duplicated ...
4 years, 7 months ago (2016-05-25 20:01:09 UTC) #5
mstensho (USE GERRIT)
Note that I'm going on paternity leave at EOD tomorrow, but I suppose you could ...
4 years, 6 months ago (2016-05-26 18:08:48 UTC) #6
dgrogan
New patch uploaded, please take a look. Xianzhu, I think an updated border width on ...
4 years, 6 months ago (2016-05-27 00:21:38 UTC) #7
dgrogan
https://codereview.chromium.org/2013693002/diff/40001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp File third_party/WebKit/Source/core/layout/LayoutTableSection.cpp (right): https://codereview.chromium.org/2013693002/diff/40001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp#newcode130 third_party/WebKit/Source/core/layout/LayoutTableSection.cpp:130: // TODO(dgrogan): Do we need to call cell->setChildNeedsLayout() like ...
4 years, 6 months ago (2016-05-27 00:23:54 UTC) #8
Xianzhu
On 2016/05/27 00:21:38, dgrogan wrote: > New patch uploaded, please take a look. > > ...
4 years, 6 months ago (2016-05-27 00:33:27 UTC) #9
mstensho (USE GERRIT)
https://codereview.chromium.org/2013693002/diff/40001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp File third_party/WebKit/Source/core/layout/LayoutTableSection.cpp (right): https://codereview.chromium.org/2013693002/diff/40001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp#newcode130 third_party/WebKit/Source/core/layout/LayoutTableSection.cpp:130: // TODO(dgrogan): Do we need to call cell->setChildNeedsLayout() like ...
4 years, 6 months ago (2016-05-27 08:36:33 UTC) #10
dgrogan
Emil, I've stalled working on this, could you look it over and then we can ...
4 years, 6 months ago (2016-06-10 22:51:11 UTC) #12
eae
On 2016/06/10 22:51:11, dgrogan wrote: > Emil, I've stalled working on this, could you look ...
4 years, 6 months ago (2016-06-21 09:20:33 UTC) #13
dgrogan
Emil, this is ready for a real look. https://codereview.chromium.org/2013693002/diff/120001/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp File third_party/WebKit/Source/core/layout/LayoutTableRow.cpp (right): https://codereview.chromium.org/2013693002/diff/120001/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp#newcode79 third_party/WebKit/Source/core/layout/LayoutTableRow.cpp:79: // ...
4 years, 5 months ago (2016-07-01 20:02:26 UTC) #14
eae
Looking good but have a few questions. https://codereview.chromium.org/2013693002/diff/120001/third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp File third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp (right): https://codereview.chromium.org/2013693002/diff/120001/third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp#newcode30 third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp:30: return oldStyle->borderLeftWidth() ...
4 years, 5 months ago (2016-07-01 22:20:26 UTC) #15
dgrogan
eae: ready for another look trchen: could you take a look at the comment in ...
4 years, 5 months ago (2016-07-06 23:10:29 UTC) #16
eae
On 2016/07/06 23:10:29, dgrogan wrote: > eae: ready for another look > trchen: could you ...
4 years, 5 months ago (2016-07-06 23:13:06 UTC) #17
dgrogan
Actually +trchen this time trchen, could you look at the comments in https://codereview.chromium.org/2013693002/diff/120001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
4 years, 5 months ago (2016-07-06 23:42:09 UTC) #19
dgrogan
I decided to readd a layout test that checks only layout stuff, not paint stuff. ...
4 years, 5 months ago (2016-07-07 22:47:16 UTC) #21
Xianzhu
What do you mean the "paint golden file"? https://codereview.chromium.org/2013693002/diff/180001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp File third_party/WebKit/Source/core/layout/LayoutTableSection.cpp (right): https://codereview.chromium.org/2013693002/diff/180001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp#newcode131 third_party/WebKit/Source/core/layout/LayoutTableSection.cpp:131: markAllCellsWidthsDirtyAndOrNeedsLayout(true ...
4 years, 5 months ago (2016-07-07 23:13:30 UTC) #22
dgrogan
By "paint golden file" I meant border-collapsing/cached-change-tbody-border-width-expected.txt. I don't know how to interpret the diff ...
4 years, 5 months ago (2016-07-08 17:18:08 UTC) #23
Xianzhu
On 2016/07/08 17:18:08, dgrogan wrote: > By "paint golden file" I meant > border-collapsing/cached-change-tbody-border-width-expected.txt. I ...
4 years, 5 months ago (2016-07-08 17:39:02 UTC) #24
dgrogan
On 2016/07/08 17:39:02, Xianzhu wrote: > On 2016/07/08 17:18:08, dgrogan wrote: > > By "paint ...
4 years, 5 months ago (2016-07-08 18:30:32 UTC) #25
Xianzhu
On 2016/07/08 18:30:32, dgrogan wrote: > On 2016/07/08 17:39:02, Xianzhu wrote: > > On 2016/07/08 ...
4 years, 5 months ago (2016-07-08 18:43:46 UTC) #26
trchen
https://codereview.chromium.org/2013693002/diff/120001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp File third_party/WebKit/Source/core/layout/LayoutTableSection.cpp (right): https://codereview.chromium.org/2013693002/diff/120001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp#newcode1227 third_party/WebKit/Source/core/layout/LayoutTableSection.cpp:1227: if (!row) On 2016/07/06 23:10:29, dgrogan wrote: > On ...
4 years, 5 months ago (2016-07-11 21:12:33 UTC) #27
dgrogan
https://codereview.chromium.org/2013693002/diff/120001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp File third_party/WebKit/Source/core/layout/LayoutTableSection.cpp (right): https://codereview.chromium.org/2013693002/diff/120001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp#newcode1227 third_party/WebKit/Source/core/layout/LayoutTableSection.cpp:1227: if (!row) You nailed it; cells with rowspan that ...
4 years, 5 months ago (2016-07-11 22:27:16 UTC) #28
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/2013693002/220001
4 years, 5 months ago (2016-07-12 21:40:35 UTC) #31
commit-bot: I haz the power
All required reviewers (with asterisk prefixes) have not yet approved this CL. No L-G-T-M from ...
4 years, 5 months ago (2016-07-12 21:40:38 UTC) #33
dgrogan
Removing trchen as required reviewer
4 years, 5 months ago (2016-07-12 21:41:29 UTC) #35
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/2013693002/220001
4 years, 5 months ago (2016-07-12 21:45:09 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/258814)
4 years, 5 months ago (2016-07-12 23:19:23 UTC) #39
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/2013693002/220001
4 years, 5 months ago (2016-07-12 23:22:51 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/200262) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 5 months ago (2016-07-13 00:38:52 UTC) #43
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/2013693002/220001
4 years, 5 months ago (2016-07-13 00:59:26 UTC) #45
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 5 months ago (2016-07-13 04:00:17 UTC) #46
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 04:00:37 UTC) #47
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 04:03:00 UTC) #49
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/596c28c4ab1759719fe00b8319571fba398f48e1
Cr-Commit-Position: refs/heads/master@{#404994}

Powered by Google App Engine
This is Rietveld 408576698