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

Issue 2855853002: Don't update column position in StyleDidChange. (Closed)

Created:
3 years, 7 months ago by rune
Modified:
3 years, 7 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
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't update column position in StyleDidChange. StyleDidChange set the first column position to the horizontal border spacing value regardless of whether this value changed or not. I am not familiar with how table layout works in Blink and haven't debugged this extensively, but when we re-layout a table cell because it has out-of-flow content which needs layout, the first effective column position is set wrongly. It gets its initial value from the line removed in this CL by a style recalc on the table element prior to the re-layout, which is the h_spacing_, but the spacing is subtracted once more in http://bit.ly/2pBB7x1 R=eae@chromium.org,mstensho@opera.com BUG=716006 Review-Url: https://codereview.chromium.org/2855853002 Cr-Commit-Position: refs/heads/master@{#468920} Committed: https://chromium.googlesource.com/chromium/src/+/d3c625b0b03346472e45dc1fda33d35b1d40efd3

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/table/relayout-out-of-flow-with-border-spacing.html View 1 chunk +30 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.cpp View 1 chunk +0 lines, -1 line 2 comments Download

Messages

Total messages: 18 (9 generated)
rune
ptal
3 years, 7 months ago (2017-05-02 14:36:39 UTC) #3
eae
This seems reasonable to me but I'd like dgrogan to take a look. Thanks!
3 years, 7 months ago (2017-05-02 15:58:32 UTC) #7
dgrogan
lgtm I think the code change is right but the description is a little off: ...
3 years, 7 months ago (2017-05-03 03:07:59 UTC) #8
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/2855853002/1
3 years, 7 months ago (2017-05-03 08:50:44 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/d3c625b0b03346472e45dc1fda33d35b1d40efd3
3 years, 7 months ago (2017-05-03 08:54:15 UTC) #14
mstensho (USE GERRIT)
lgtm https://codereview.chromium.org/2855853002/diff/1/third_party/WebKit/Source/core/layout/LayoutTable.cpp File third_party/WebKit/Source/core/layout/LayoutTable.cpp (left): https://codereview.chromium.org/2855853002/diff/1/third_party/WebKit/Source/core/layout/LayoutTable.cpp#oldcode84 third_party/WebKit/Source/core/layout/LayoutTable.cpp:84: h_spacing_ = ShouldCollapseBorders() ? 0 : Style()->HorizontalBorderSpacing(); Furthermore, ...
3 years, 7 months ago (2017-05-04 13:37:52 UTC) #15
rune
https://codereview.chromium.org/2855853002/diff/1/third_party/WebKit/Source/core/layout/LayoutTable.cpp File third_party/WebKit/Source/core/layout/LayoutTable.cpp (left): https://codereview.chromium.org/2855853002/diff/1/third_party/WebKit/Source/core/layout/LayoutTable.cpp#oldcode84 third_party/WebKit/Source/core/layout/LayoutTable.cpp:84: h_spacing_ = ShouldCollapseBorders() ? 0 : Style()->HorizontalBorderSpacing(); On 2017/05/04 ...
3 years, 7 months ago (2017-05-04 20:32:03 UTC) #16
rune
On 2017/05/04 20:32:03, rune wrote: > https://codereview.chromium.org/2855853002/diff/1/third_party/WebKit/Source/core/layout/LayoutTable.cpp > File third_party/WebKit/Source/core/layout/LayoutTable.cpp (left): > > https://codereview.chromium.org/2855853002/diff/1/third_party/WebKit/Source/core/layout/LayoutTable.cpp#oldcode84 > ...
3 years, 7 months ago (2017-05-05 08:19:07 UTC) #17
dgrogan
3 years, 7 months ago (2017-05-05 15:32:00 UTC) #18
Message was sent while issue was closed.
Thanks for circling back.

Powered by Google App Engine
This is Rietveld 408576698