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

Issue 179993006: [New multicol] Eliminate the need for RenderMultiColumnBlock. (Closed)

Created:
6 years, 10 months ago by mstensho (USE GERRIT)
Modified:
6 years, 9 months ago
CC:
blink-reviews, mstensho+blink_opera.com, chromiumbugtracker_adobe.com, zoltan1, dsinclair, bemjb+rendering_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., ojan, esprehn
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[New multicol] Eliminate the need for RenderMultiColumnBlock. Having a distinct renderer for multicol is problematic, both table cells and list items may become multicol containers. Also, if we want to use the new multicol implementation to do pagination, we need RenderView to be able to do multicol as well. Moved most of the logic over to RenderMultiColumnFlowThread, but some hooks are needed in RenderBlockFlow as well. This is based on work by hyatt@apple.com in WebKit. Original patches: https://bugs.webkit.org/show_bug.cgi?id=127365 https://bugs.webkit.org/show_bug.cgi?id=127565 Added Layout tests for multicol list-item and table-cell. Also added tests for turning a regular block into multicol, and back into a regular block (passed before, passes now). BUG=none Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167891

Patch Set 1 #

Total comments: 8

Patch Set 2 : Code review #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -323 lines) Patch
A LayoutTests/fast/multicol/newmulticol/list-item.html View 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/newmulticol/list-item-expected.html View 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/newmulticol/multicol-becomes-regular-block.html View 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/newmulticol/multicol-becomes-regular-block-expected.html View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/newmulticol/regular-block-becomes-multicol.html View 1 chunk +27 lines, -0 lines 2 comments Download
A LayoutTests/fast/multicol/newmulticol/regular-block-becomes-multicol-expected.html View 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/newmulticol/table-cell.html View 1 chunk +21 lines, -0 lines 2 comments Download
A LayoutTests/fast/multicol/newmulticol/table-cell-expected.html View 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderBlock.h View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderBlockFlow.h View 7 chunks +14 lines, -1 line 0 comments Download
M Source/core/rendering/RenderBlockFlow.cpp View 1 6 chunks +57 lines, -5 lines 1 comment Download
D Source/core/rendering/RenderMultiColumnBlock.h View 1 chunk +0 lines, -85 lines 0 comments Download
D Source/core/rendering/RenderMultiColumnBlock.cpp View 1 chunk +0 lines, -200 lines 0 comments Download
M Source/core/rendering/RenderMultiColumnFlowThread.h View 2 chunks +18 lines, -1 line 0 comments Download
M Source/core/rendering/RenderMultiColumnFlowThread.cpp View 4 chunks +108 lines, -6 lines 0 comments Download
M Source/core/rendering/RenderMultiColumnSet.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderMultiColumnSet.cpp View 11 chunks +13 lines, -13 lines 0 comments Download
M Source/core/rendering/RenderObject.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/RenderObject.cpp View 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
mstensho (USE GERRIT)
6 years, 10 months ago (2014-02-25 21:55:16 UTC) #1
eseidel
OK.
6 years, 10 months ago (2014-02-25 22:11:31 UTC) #2
eseidel
lgtm https://codereview.chromium.org/179993006/diff/1/Source/core/rendering/RenderBlockFlow.cpp File Source/core/rendering/RenderBlockFlow.cpp (right): https://codereview.chromium.org/179993006/diff/1/Source/core/rendering/RenderBlockFlow.cpp#newcode181 Source/core/rendering/RenderBlockFlow.cpp:181: if (RenderMultiColumnFlowThread* flowThread = multiColumnFlowThread()) { nit: I ...
6 years, 10 months ago (2014-02-25 22:16:05 UTC) #3
mstensho (USE GERRIT)
https://codereview.chromium.org/179993006/diff/1/Source/core/rendering/RenderBlockFlow.cpp File Source/core/rendering/RenderBlockFlow.cpp (right): https://codereview.chromium.org/179993006/diff/1/Source/core/rendering/RenderBlockFlow.cpp#newcode181 Source/core/rendering/RenderBlockFlow.cpp:181: if (RenderMultiColumnFlowThread* flowThread = multiColumnFlowThread()) { On 2014/02/25 22:16:05, ...
6 years, 10 months ago (2014-02-25 23:17:52 UTC) #4
mstensho (USE GERRIT)
The CQ bit was checked by mstensho@opera.com
6 years, 10 months ago (2014-02-25 23:18:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mstensho@opera.com/179993006/20001
6 years, 10 months ago (2014-02-25 23:18:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mstensho@opera.com/179993006/20001
6 years, 10 months ago (2014-02-25 23:29:00 UTC) #7
eseidel
lgtm https://codereview.chromium.org/179993006/diff/20001/LayoutTests/fast/multicol/newmulticol/regular-block-becomes-multicol.html File LayoutTests/fast/multicol/newmulticol/regular-block-becomes-multicol.html (right): https://codereview.chromium.org/179993006/diff/20001/LayoutTests/fast/multicol/newmulticol/regular-block-becomes-multicol.html#newcode11 LayoutTests/fast/multicol/newmulticol/regular-block-becomes-multicol.html:11: elm.style.WebkitColumns = 4; Why do we set WebKitColumsn ...
6 years, 10 months ago (2014-02-25 23:37:08 UTC) #8
mstensho (USE GERRIT)
https://codereview.chromium.org/179993006/diff/20001/LayoutTests/fast/multicol/newmulticol/regular-block-becomes-multicol.html File LayoutTests/fast/multicol/newmulticol/regular-block-becomes-multicol.html (right): https://codereview.chromium.org/179993006/diff/20001/LayoutTests/fast/multicol/newmulticol/regular-block-becomes-multicol.html#newcode11 LayoutTests/fast/multicol/newmulticol/regular-block-becomes-multicol.html:11: elm.style.WebkitColumns = 4; On 2014/02/25 23:37:09, eseidel wrote: > ...
6 years, 10 months ago (2014-02-25 23:52:47 UTC) #9
ojan
https://codereview.chromium.org/179993006/diff/20001/Source/core/rendering/RenderBlockFlow.cpp File Source/core/rendering/RenderBlockFlow.cpp (right): https://codereview.chromium.org/179993006/diff/20001/Source/core/rendering/RenderBlockFlow.cpp#newcode179 Source/core/rendering/RenderBlockFlow.cpp:179: RenderObject* RenderBlockFlow::layoutSpecialExcludedChild(bool relayoutChildren, SubtreeLayoutScope& layoutScope) Makes me a little ...
6 years, 10 months ago (2014-02-26 02:56:38 UTC) #10
Paweł Hajdan Jr.
The CQ bit was unchecked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 04:39:47 UTC) #11
Paweł Hajdan Jr.
The CQ bit was checked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 05:29:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mstensho@opera.com/179993006/20001
6 years, 10 months ago (2014-02-26 05:29:57 UTC) #13
mstensho (USE GERRIT)
On 2014/02/26 02:56:38, ojan wrote: > https://codereview.chromium.org/179993006/diff/20001/Source/core/rendering/RenderBlockFlow.cpp > File Source/core/rendering/RenderBlockFlow.cpp (right): > > https://codereview.chromium.org/179993006/diff/20001/Source/core/rendering/RenderBlockFlow.cpp#newcode179 > ...
6 years, 10 months ago (2014-02-26 08:33:00 UTC) #14
commit-bot: I haz the power
6 years, 10 months ago (2014-02-26 10:47:17 UTC) #15
Message was sent while issue was closed.
Change committed as 167891

Powered by Google App Engine
This is Rietveld 408576698