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

Issue 264283002: Table with fixed layout behaves like auto layout when its width is set by js instead of css. (Closed)

Created:
6 years, 7 months ago by Gurpreet
Modified:
6 years, 7 months ago
CC:
blink-reviews, mstensho+blink_opera.com, blink-reviews-rendering, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., rune+blink, lgombos, gyuyoung2, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Table with fixed layout behaves like auto layout when its width is set by js instead of css. The new width of table was not being applied when changed dynamically even though the table-layout is fixed. On calculating whether we need to set the m_tableLayout as fixed or auto the change in layout parameters such as width, height etc was not considered hence the right layout type was not being set. Incase there are any layout changes we need to see whether m_tableLayout needs to be changed or not. R=jchaffraix@chromium.org BUG=239421 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173713

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added API isTableLayoutFixed() in RenderStyle.h #

Total comments: 5

Patch Set 3 : Modified the API name in RenderStyle.h and other modifications as per review comments. #

Total comments: 2

Patch Set 4 : Modified variable name and API in RenderStyle.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -3 lines) Patch
A LayoutTests/fast/table/fixed-table-layout-width-change.html View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/fixed-table-layout-width-change-expected.txt View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderTable.cpp View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Gurpreet
Hi Julien, Can you please review this. Thanks.
6 years, 7 months ago (2014-05-06 12:58:06 UTC) #1
mstensho (USE GERRIT)
https://codereview.chromium.org/264283002/diff/1/Source/core/rendering/RenderTable.cpp File Source/core/rendering/RenderTable.cpp (right): https://codereview.chromium.org/264283002/diff/1/Source/core/rendering/RenderTable.cpp#newcode93 Source/core/rendering/RenderTable.cpp:93: if (!m_tableLayout || style()->tableLayout() != oldTableLayout || diff.needsFullLayout()) { ...
6 years, 7 months ago (2014-05-06 13:28:59 UTC) #2
Gurpreet
Thanks Morten for the review. I agree with you. Have done the changes as per ...
6 years, 7 months ago (2014-05-06 15:06:03 UTC) #3
mstensho (USE GERRIT)
https://codereview.chromium.org/264283002/diff/10001/Source/core/rendering/RenderTable.cpp File Source/core/rendering/RenderTable.cpp (right): https://codereview.chromium.org/264283002/diff/10001/Source/core/rendering/RenderTable.cpp#newcode91 Source/core/rendering/RenderTable.cpp:91: if (!m_tableLayout || style()->isTableLayoutFixed()) { Need to compare old ...
6 years, 7 months ago (2014-05-06 19:29:06 UTC) #4
Julien - ping for review
If you implement Morten's suggestion (plus a couple from me), the change would look great! ...
6 years, 7 months ago (2014-05-07 00:35:29 UTC) #5
Gurpreet
Thanks Morten and Julien for the review. Have done the changes. Please review.
6 years, 7 months ago (2014-05-07 05:00:13 UTC) #6
mstensho (USE GERRIT)
non-owner lgtm with nits. I also believe that one of Julien's issues hasn't been addressed ...
6 years, 7 months ago (2014-05-07 19:12:27 UTC) #7
Julien - ping for review
lgtm
6 years, 7 months ago (2014-05-09 01:53:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/k.gurpreet@samsung.com/264283002/50001
6 years, 7 months ago (2014-05-09 01:54:49 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-09 03:19:22 UTC) #10
commit-bot: I haz the power
6 years, 7 months ago (2014-05-09 03:57:43 UTC) #11
Message was sent while issue was closed.
Change committed as 173713

Powered by Google App Engine
This is Rietveld 408576698