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

Issue 151993004: Col width is not honored when dynamically updated and it would not make table narrower (Closed)

Created:
6 years, 10 months ago by Gurpreet
Modified:
6 years, 9 months ago
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, lgombos, gyuyoung-inactive, ryuan, tonikitoo_
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Col width is not honored when dynamically updated and it would not make table narrower Increasing the table width by increasing the colgroup width was working but decreasing the table width by decreasing the colgroup width is not working. When colgroup width is defined table cell should adjust according to that. On decreasing colgroup width the cells maxPreferredLogicalWidth was still set to the earlier value. Setting the setPreferredLogicalWidthsDirty to true so that cells pref width is calculated again. I already landed this patch on webkit. Just modified the layout test file and fixed build errors. http://trac.webkit.org/changeset/162334. R=jchaffraix@chromium.org BUG=340252 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168908

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Total comments: 7

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Patch Set 8 : Added new test cases as per suggestion. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -1 line) Patch
A LayoutTests/fast/table/resize-table-using-col-height-vertical-writing-mode.html View 1 2 3 4 5 6 7 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/resize-table-using-col-height-vertical-writing-mode-expected.txt View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/resize-table-width-using-col-colgroup-span.html View 1 2 3 4 5 6 7 1 chunk +59 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/resize-table-width-using-col-colgroup-span-expected.txt View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/resize-table-width-using-col-span.html View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/resize-table-width-using-col-span-expected.txt View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/resize-table-width-using-col-width.html View 1 2 3 4 5 6 7 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/resize-table-width-using-col-width-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/resize-table-width-using-multiple-col-span.html View 1 2 3 4 5 6 7 1 chunk +66 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/resize-table-width-using-multiple-col-span-expected.txt View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderTableCol.cpp View 1 2 3 4 5 6 1 chunk +17 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
Gurpreet
Please have a look at this patch.
6 years, 10 months ago (2014-02-03 13:24:53 UTC) #1
Julien - ping for review
https://codereview.chromium.org/151993004/diff/20001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html File LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html (right): https://codereview.chromium.org/151993004/diff/20001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html#newcode21 LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html:21: shouldBe("document.getElementById('colWidth').offsetWidth","100"); Do we really need a custom check instead ...
6 years, 10 months ago (2014-02-06 22:28:18 UTC) #2
Gurpreet
On 2014/02/06 22:28:18, Julien Chaffraix - PST wrote: > https://codereview.chromium.org/151993004/diff/20001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html > File > LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html > ...
6 years, 10 months ago (2014-02-12 14:06:57 UTC) #3
Julien - ping for review
https://codereview.chromium.org/151993004/diff/110001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html File LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html (right): https://codereview.chromium.org/151993004/diff/110001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html#newcode34 LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html:34: <button onclick="changeColWidthUsingWidth();">Click me to test manually. The column should ...
6 years, 10 months ago (2014-02-14 18:18:36 UTC) #4
Gurpreet
Changes done. Please have a look. https://codereview.chromium.org/151993004/diff/110001/Source/core/rendering/RenderTableCol.cpp File Source/core/rendering/RenderTableCol.cpp (right): https://codereview.chromium.org/151993004/diff/110001/Source/core/rendering/RenderTableCol.cpp#newcode59 Source/core/rendering/RenderTableCol.cpp:59: for (RenderTableCol* column ...
6 years, 10 months ago (2014-02-17 09:32:07 UTC) #5
Gurpreet
https://codereview.chromium.org/151993004/diff/110001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html File LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html (right): https://codereview.chromium.org/151993004/diff/110001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html#newcode34 LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html:34: <button onclick="changeColWidthUsingWidth();">Click me to test manually. The column should ...
6 years, 10 months ago (2014-02-17 09:40:43 UTC) #6
Gurpreet
Thanks Julien for the review. Added comments and modified the code.
6 years, 10 months ago (2014-02-17 09:41:20 UTC) #7
Julien - ping for review
https://codereview.chromium.org/151993004/diff/170001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html File LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html (right): https://codereview.chromium.org/151993004/diff/170001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html#newcode23 LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html:23: Tests that the height of table cell changes on ...
6 years, 10 months ago (2014-02-24 19:25:30 UTC) #8
Gurpreet
Modified code and added comments. Please review. https://codereview.chromium.org/151993004/diff/170001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html File LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html (right): https://codereview.chromium.org/151993004/diff/170001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html#newcode23 LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html:23: Tests that ...
6 years, 10 months ago (2014-02-25 13:12:56 UTC) #9
Julien - ping for review
https://codereview.chromium.org/151993004/diff/170001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html File LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html (right): https://codereview.chromium.org/151993004/diff/170001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html#newcode23 LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html:23: Tests that the height of table cell changes on ...
6 years, 9 months ago (2014-03-01 00:27:54 UTC) #10
Gurpreet
On 2014/03/01 00:27:54, Julien Chaffraix - PST wrote: > https://codereview.chromium.org/151993004/diff/170001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html > File > LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html > ...
6 years, 9 months ago (2014-03-03 11:42:34 UTC) #11
Gurpreet
On 2014/03/03 11:42:34, Gurpreet wrote: > On 2014/03/01 00:27:54, Julien Chaffraix - PST wrote: > ...
6 years, 9 months ago (2014-03-03 11:42:46 UTC) #12
Gurpreet
On 2014/03/01 00:27:54, Julien Chaffraix - PST wrote: > https://codereview.chromium.org/151993004/diff/170001/LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html > File > LayoutTests/fast/dom/HTMLTableColElement/resize-table-using-col-height-vertical-writing-mode.html > ...
6 years, 9 months ago (2014-03-03 11:53:12 UTC) #13
Gurpreet
Please ignore message #11 and #12.
6 years, 9 months ago (2014-03-03 11:53:52 UTC) #14
Gurpreet
Please ignore message #11 and #12.
6 years, 9 months ago (2014-03-03 11:53:52 UTC) #15
Julien - ping for review
On 2014/03/03 11:53:12, Gurpreet wrote: > On 2014/03/01 00:27:54, Julien Chaffraix - PST wrote: > ...
6 years, 9 months ago (2014-03-04 19:48:05 UTC) #16
Gurpreet
> You can trigger a layout whenever you want, which should solve your issue and ...
6 years, 9 months ago (2014-03-05 11:10:47 UTC) #17
Julien - ping for review
On 2014/03/05 11:10:47, Gurpreet wrote: > > You can trigger a layout whenever you want, ...
6 years, 9 months ago (2014-03-06 00:33:47 UTC) #18
Julien - ping for review
https://codereview.chromium.org/151993004/diff/280001/Source/core/rendering/RenderTableCol.cpp File Source/core/rendering/RenderTableCol.cpp (right): https://codereview.chromium.org/151993004/diff/280001/Source/core/rendering/RenderTableCol.cpp#newcode63 Source/core/rendering/RenderTableCol.cpp:63: } This span computation code actually doesn't work, totally ...
6 years, 9 months ago (2014-03-06 00:54:46 UTC) #19
Gurpreet
Thanks Julien for your time. I have made the changes as per your suggestion.
6 years, 9 months ago (2014-03-07 07:46:17 UTC) #20
Julien - ping for review
lgtm but don't land without the appropriate testing: - a combinaison of colgroup / col ...
6 years, 9 months ago (2014-03-10 18:04:40 UTC) #21
Gurpreet
The CQ bit was checked by k.gurpreet@samsung.com
6 years, 9 months ago (2014-03-11 10:30:45 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/k.gurpreet@samsung.com/151993004/320001
6 years, 9 months ago (2014-03-11 10:30:48 UTC) #23
commit-bot: I haz the power
6 years, 9 months ago (2014-03-11 11:39:23 UTC) #24
Message was sent while issue was closed.
Change committed as 168908

Powered by Google App Engine
This is Rietveld 408576698