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

Issue 2884573002: Replace LayoutTableCell::AbsoluteColumnIndex() with EffectiveColumnIndex()

Created:
3 years, 7 months ago by Xianzhu
Modified:
3 years, 6 months ago
Reviewers:
dgrogan, eae
CC:
chromium-reviews, pdr+renderingwatchlist_chromium.org, dtseng+watch_chromium.org, aboxhall, zoltan1, aboxhall+watch_chromium.org, nektar+watch_chromium.org, blink-reviews-layout_chromium.org, szager+layoutwatch_chromium.org, eae+blinkwatch, leviw+renderwatch, yuzo+watch_chromium.org, haraken, nektarios, dshwang, dougt+watch_chromium.org, dmazzoni+watch_chromium.org, jchaffraix+rendering, blink-reviews-paint_chromium.org, blink-reviews, je_julie, dmazzoni
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace LayoutTableCell::AbsoluteColumnIndex() with EffectiveColumnIndex() We never use LayoutTableCell::AbsoluteColumnIndex() without converting it to effective column index. Replace it with EffectiveColumnIndex() to simplify callers. Also add EffectiveColumnIndexOfAfterCell() and ColElement() to reduce duplicated code, and replace LayoutTable::ColElementAtAbsoluteColumn() with LayoutTable::ColElementAtEffectiveColumn(). BTW fixed several bugs that effective column index was passed to LayoutTable::ColElementAtAbsoluteColumn(). CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2

Patch Set 1 #

Patch Set 2 : - #

Patch Set 3 : - #

Patch Set 4 : - #

Patch Set 5 : LayoutTableSection::NumEffectiveColumns() -> MaxNumEffectiveColumnsOfRows() #

Patch Set 6 : Rebase on https://codereview.chromium.org/2884573002/ #

Patch Set 7 : - #

Patch Set 8 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+551 lines, -237 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.h View 1 2 3 4 5 6 7 6 chunks +20 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.cpp View 1 2 3 4 5 6 7 13 chunks +88 lines, -91 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.h View 1 2 3 4 5 6 7 4 chunks +17 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.cpp View 1 2 3 4 5 6 7 10 chunks +47 lines, -64 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCellTest.cpp View 1 2 3 4 5 6 7 1 chunk +74 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCol.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCol.cpp View 1 2 3 4 5 6 7 3 chunks +14 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.h View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.cpp View 1 2 3 4 5 6 7 14 chunks +21 lines, -15 lines 0 comments Download
A third_party/WebKit/Source/core/layout/LayoutTableTest.cpp View 1 2 3 4 5 6 7 1 chunk +239 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp View 1 2 3 4 5 6 3 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TableLayoutAlgorithmFixed.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/TableCellPaintInvalidator.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/TableSectionPainter.cpp View 1 2 3 4 5 6 7 4 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXTable.cpp View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXTableColumn.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (29 generated)
Xianzhu
3 years, 7 months ago (2017-05-15 18:36:45 UTC) #10
eae
This is great, please allow dgrogan to comment before landing though. LGTM
3 years, 7 months ago (2017-05-15 18:38:15 UTC) #12
Xianzhu
dgrogan@, would you like to take a look?
3 years, 7 months ago (2017-05-16 15:53:42 UTC) #19
dgrogan
On 2017/05/16 15:53:42, Xianzhu wrote: > dgrogan@, would you like to take a look? Yes, ...
3 years, 7 months ago (2017-05-16 16:55:43 UTC) #20
Xianzhu
On 2017/05/16 16:55:43, dgrogan wrote: > On 2017/05/16 15:53:42, Xianzhu wrote: > > dgrogan@, would ...
3 years, 7 months ago (2017-05-16 17:08:35 UTC) #21
Xianzhu
I added LayoutTableSectionTest.OuterBorder* because I changed the related functions which previously mistakenly called ColElementAtAbsoluteColumn(effective_column_index). However, ...
3 years, 7 months ago (2017-05-17 00:46:34 UTC) #26
Xianzhu
3 years, 7 months ago (2017-05-17 05:03:41 UTC) #27
Sorry, I just noticed a big problem of this CL: I forgot to update
LayoutTable::ColElementAtEffectiveColumn() so it is actually still
ColElementAtAbsoluteColumn() just with a different name.

Will update and add test. Will let you know when I finish.

Powered by Google App Engine
This is Rietveld 408576698