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

Issue 2392503003: Fix LayoutBox::topLeftLocation for table rows and table cells (Closed)

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

Description

Fix LayoutBox::topLeftLocation for table rows and table cells Previously we used containingBlock() as the default flipped blocks container in LayoutBox::topLeftLocation(). This was incorrect for table rows and table cells whose locations and topLeftLocations should be relative to the containing section. This fixes layout tests about table row/cells in vertical writing mode for slimmingPaintInvalidation. BUG=652392 Committed: https://crrev.com/9c820804326c7a2beac237fd826f73e237a05c46 Cr-Commit-Position: refs/heads/master@{#422917}

Patch Set 1 #

Patch Set 2 : Update test for 652496 #

Patch Set 3 : locationContainer #

Patch Set 4 : virtual #

Total comments: 4

Patch Set 5 : Add LayoutBoxTest.LocationContainer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -8 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 2 chunks +20 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxTest.cpp View 1 2 3 4 1 chunk +85 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (22 generated)
Xianzhu
4 years, 2 months ago (2016-10-03 23:39:45 UTC) #6
mstensho (USE GERRIT)
lgtm. One typo in the commit comment: "containinBlock()". I wonder if LayoutBox::topLeftLocation() is the only ...
4 years, 2 months ago (2016-10-04 09:34:17 UTC) #10
eae
LGTM
4 years, 2 months ago (2016-10-04 15:52:05 UTC) #12
Xianzhu
On 2016/10/04 09:34:17, mstensho wrote: > lgtm. One typo in the commit comment: "containinBlock()". > ...
4 years, 2 months ago (2016-10-04 16:21:00 UTC) #14
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/2392503003/40001
4 years, 2 months ago (2016-10-04 17:27:26 UTC) #18
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/2392503003/60001
4 years, 2 months ago (2016-10-04 17:28:09 UTC) #21
chrishtr
https://codereview.chromium.org/2392503003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2392503003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2288 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2288: DCHECK(container->isTableRow() && parentBox() == container); I changed the code ...
4 years, 2 months ago (2016-10-04 17:32:17 UTC) #23
Xianzhu
https://codereview.chromium.org/2392503003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2392503003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2288 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2288: DCHECK(container->isTableRow() && parentBox() == container); On 2016/10/04 17:32:17, chrishtr ...
4 years, 2 months ago (2016-10-04 17:48:02 UTC) #24
chrishtr
Does paint/invalidation/display-table-row-crash.html crash?
4 years, 2 months ago (2016-10-04 17:49:28 UTC) #25
Xianzhu
On 2016/10/04 17:49:28, chrishtr wrote: > Does paint/invalidation/display-table-row-crash.html crash? It doesn't crash in either normal ...
4 years, 2 months ago (2016-10-04 18:01:32 UTC) #26
chrishtr
On 2016/10/04 at 18:01:32, wangxianzhu wrote: > On 2016/10/04 17:49:28, chrishtr wrote: > > Does ...
4 years, 2 months ago (2016-10-04 18:17:30 UTC) #27
chrishtr
lgtm
4 years, 2 months ago (2016-10-04 18:17:34 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/2392503003/60001
4 years, 2 months ago (2016-10-04 18:18:10 UTC) #30
chrishtr
https://codereview.chromium.org/2392503003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2392503003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode5049 third_party/WebKit/Source/core/layout/LayoutBox.cpp:5049: LayoutBox* LayoutBox::locationContainer() const { Please add a unittest that ...
4 years, 2 months ago (2016-10-04 18:25:59 UTC) #32
Xianzhu
https://codereview.chromium.org/2392503003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2392503003/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode5049 third_party/WebKit/Source/core/layout/LayoutBox.cpp:5049: LayoutBox* LayoutBox::locationContainer() const { On 2016/10/04 18:25:59, chrishtr wrote: ...
4 years, 2 months ago (2016-10-04 19:20:30 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/2392503003/80001
4 years, 2 months ago (2016-10-04 19:20:46 UTC) #36
mstensho (USE GERRIT)
On 2016/10/04 16:21:00, Xianzhu wrote: > On 2016/10/04 09:34:17, mstensho wrote: > > Or: fix ...
4 years, 2 months ago (2016-10-04 20:20:25 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-04 20:40:25 UTC) #39
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 20:43:58 UTC) #41
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9c820804326c7a2beac237fd826f73e237a05c46
Cr-Commit-Position: refs/heads/master@{#422917}

Powered by Google App Engine
This is Rietveld 408576698