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

Issue 1631633002: Adjust column rows' height better for their offset in the multicol container. (Closed)

Created:
4 years, 11 months ago by mstensho (USE GERRIT)
Modified:
4 years, 10 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, mstensho (USE GERRIT), pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adjust column rows' height better for their offset in the multicol container. We were missing the case where the first object in a multicol container was a spanner (the call to previousSiblingMultiColumnSet() should have been previousSiblingMultiColumnBox(), to catch spanner placeholders in addition to column sets). But instead of having a special code path depending on whether we're dealing with the first box or not (to avoid subtracting the multicol container's top border and padding from an uncalculated logical top of a column set), always subtract the margin top edge of the first column box instead. R=leviw@chromium.org Committed: https://crrev.com/86d53e7bdc322fb562163695c0f37ac671977a4b Cr-Commit-Position: refs/heads/master@{#371661}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -15 lines) Patch
A third_party/WebKit/LayoutTests/fast/multicol/span/autofill-after-spanner.html View 1 chunk +17 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/multicol/span/autofill-after-spanner-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp View 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/MultiColumnFragmentainerGroup.cpp View 1 chunk +2 lines, -15 lines 2 comments Download

Messages

Total messages: 8 (2 generated)
mstensho (USE GERRIT)
Hm.. I was just going to clean up this code, but then I found a ...
4 years, 11 months ago (2016-01-25 18:07:48 UTC) #1
leviw_travelin_and_unemployed
lgtm Sorry I missed this the first time around. https://codereview.chromium.org/1631633002/diff/1/third_party/WebKit/Source/core/layout/MultiColumnFragmentainerGroup.cpp File third_party/WebKit/Source/core/layout/MultiColumnFragmentainerGroup.cpp (right): https://codereview.chromium.org/1631633002/diff/1/third_party/WebKit/Source/core/layout/MultiColumnFragmentainerGroup.cpp#newcode295 third_party/WebKit/Source/core/layout/MultiColumnFragmentainerGroup.cpp:295: ...
4 years, 10 months ago (2016-01-26 23:00:30 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1631633002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1631633002/1
4 years, 10 months ago (2016-01-26 23:04:14 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-01-27 00:38:27 UTC) #5
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/86d53e7bdc322fb562163695c0f37ac671977a4b Cr-Commit-Position: refs/heads/master@{#371661}
4 years, 10 months ago (2016-01-27 00:39:53 UTC) #7
mstensho (USE GERRIT)
4 years, 10 months ago (2016-01-27 09:51:45 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/1631633002/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/layout/MultiColumnFragmentainerGroup.cpp
(right):

https://codereview.chromium.org/1631633002/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/layout/MultiColumnFragmentainerGroup.cpp:295: //
Let's avoid zero height, as that would cause an infinite amount of columns to be
created.
On 2016/01/26 23:00:29, leviw wrote:
> Where's the fun in that?
> 
> If we can just sell the columns for $0.01 we'll be RICH! Think of all the
spam,
> sausage, lobster, egg, bread, and beer we could buy!

I can do that in a follow-up patch. You're right. This can be monetized! Surely
there's a market for all the super-short columns that we don't need.

Powered by Google App Engine
This is Rietveld 408576698