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

Issue 294783004: Use tighter typing in table rendering code (Closed)

Created:
6 years, 7 months ago by Inactive
Modified:
6 years, 7 months ago
CC:
blink-reviews, mstensho+blink_opera.com, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., rune+blink
Visibility:
Public.

Description

Use tighter typing in table rendering code Use tighter typing in table rendering code: - Rename RenderTableSection's firstChild() / lastChild() to firstRow() / lastRow() and have them return a RenderTableRow* instead of a RenderObject*. - Rename RenderTableRow's firstChild() / lastChild() to firstCell() / lastCell() and have them return a RenderTableCell* instead of a RenderObject*. Add previousRow() / nextRow() methods to RenderTableRow and previousCell() / nextCell() to RenderTableCell to make traversal code more readable. Also hide RenderObject's previousSibling() / nextSibling() in those classes to make sure the more specialized methods are called. This is based on WebKit r156355 by Antti Koivisto (antti@apple.com): https://trac.webkit.org/r156355 R=esprehn@chromium.org, pdr@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174403

Patch Set 1 #

Patch Set 2 : Add missing inlines #

Patch Set 3 : Fix typo / bug and update copyrights #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -113 lines) Patch
M Source/core/rendering/FastTextAutosizer.cpp View 1 chunk +6 lines, -9 lines 0 comments Download
M Source/core/rendering/FixedTableLayout.cpp View 1 2 3 chunks +4 lines, -12 lines 4 comments Download
M Source/core/rendering/RenderBlock.h View 2 chunks +2 lines, -3 lines 1 comment Download
M Source/core/rendering/RenderTable.cpp View 1 2 2 chunks +5 lines, -9 lines 0 comments Download
M Source/core/rendering/RenderTableCell.h View 1 2 4 chunks +29 lines, -1 line 0 comments Download
M Source/core/rendering/RenderTableCell.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderTableRow.h View 1 2 5 chunks +33 lines, -4 lines 0 comments Download
M Source/core/rendering/RenderTableRow.cpp View 1 2 7 chunks +27 lines, -36 lines 0 comments Download
M Source/core/rendering/RenderTableSection.h View 1 2 4 chunks +4 lines, -6 lines 0 comments Download
M Source/core/rendering/RenderTableSection.cpp View 1 2 7 chunks +20 lines, -32 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Inactive
6 years, 7 months ago (2014-05-20 05:23:50 UTC) #1
mstensho (USE GERRIT)
Beautiful! If a table row can contain anything other than cells, or if a table ...
6 years, 7 months ago (2014-05-20 09:34:39 UTC) #2
rune
https://codereview.chromium.org/294783004/diff/40001/Source/core/rendering/FixedTableLayout.cpp File Source/core/rendering/FixedTableLayout.cpp (right): https://codereview.chromium.org/294783004/diff/40001/Source/core/rendering/FixedTableLayout.cpp#newcode4 Source/core/rendering/FixedTableLayout.cpp:4: * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, ...
6 years, 7 months ago (2014-05-20 09:45:25 UTC) #3
Inactive
https://codereview.chromium.org/294783004/diff/40001/Source/core/rendering/FixedTableLayout.cpp File Source/core/rendering/FixedTableLayout.cpp (right): https://codereview.chromium.org/294783004/diff/40001/Source/core/rendering/FixedTableLayout.cpp#newcode4 Source/core/rendering/FixedTableLayout.cpp:4: * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, ...
6 years, 7 months ago (2014-05-20 11:32:22 UTC) #4
mstensho (USE GERRIT)
On 2014/05/20 11:32:22, Chris Dumez wrote: > https://codereview.chromium.org/294783004/diff/40001/Source/core/rendering/FixedTableLayout.cpp > File Source/core/rendering/FixedTableLayout.cpp (right): > > https://codereview.chromium.org/294783004/diff/40001/Source/core/rendering/FixedTableLayout.cpp#newcode4 ...
6 years, 7 months ago (2014-05-20 11:35:32 UTC) #5
pdr.
LGTM https://codereview.chromium.org/294783004/diff/40001/Source/core/rendering/FixedTableLayout.cpp File Source/core/rendering/FixedTableLayout.cpp (right): https://codereview.chromium.org/294783004/diff/40001/Source/core/rendering/FixedTableLayout.cpp#newcode4 Source/core/rendering/FixedTableLayout.cpp:4: * Copyright (C) 2003, 2004, 2005, 2006, 2007, ...
6 years, 7 months ago (2014-05-20 16:49:16 UTC) #6
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-20 20:26:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/294783004/40001
6 years, 7 months ago (2014-05-20 20:26:45 UTC) #8
commit-bot: I haz the power
6 years, 7 months ago (2014-05-20 20:39:57 UTC) #9
Message was sent while issue was closed.
Change committed as 174403

Powered by Google App Engine
This is Rietveld 408576698