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

Issue 1460203003: Add marginBeforeIfFloating() to LayoutBlockFlow. (Closed)

Created:
5 years, 1 month ago by mstensho (USE GERRIT)
Modified:
5 years, 1 month 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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add marginBeforeIfFloating() to LayoutBlockFlow. Floats' margins need special attention for pagination, because they are not to be eaten by page or column boundaries. Clamp strut to >= 0 in LayoutBlockFlow::setPaginationStrutPropagatedFromChild() instead of doing it (poorly) in calculateStrutForPropagation(). Removed calculateStrutForPropagation(), because there was hardly anything left there now (and this lets us make marginBeforeIfFloating() private). This function also turned out not to be universally usable, since we were already calculating the strut on our own in adjustLinePositionForPagination() in one case. R=leviw@chromium.org Committed: https://crrev.com/d27423b8964575c526a9eec2e4c672f9d2036245 Cr-Commit-Position: refs/heads/master@{#361084}

Patch Set 1 #

Total comments: 4

Patch Set 2 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -17 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 1 5 chunks +9 lines, -17 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
mstensho (USE GERRIT)
5 years, 1 month ago (2015-11-20 15:41:12 UTC) #1
leviw_travelin_and_unemployed
LGTM with one point of personal preference. Thanks! :) https://codereview.chromium.org/1460203003/diff/1/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp File third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp (right): https://codereview.chromium.org/1460203003/diff/1/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp#newcode2926 third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp:2926: ...
5 years, 1 month ago (2015-11-20 21:08:26 UTC) #2
mstensho (USE GERRIT)
https://codereview.chromium.org/1460203003/diff/1/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp File third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp (right): https://codereview.chromium.org/1460203003/diff/1/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp#newcode2926 third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp:2926: if (strut < LayoutUnit()) On 2015/11/20 21:08:26, leviw wrote: ...
5 years, 1 month ago (2015-11-23 09:00:02 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1460203003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1460203003/20001
5 years, 1 month ago (2015-11-23 09:00:03 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-23 10:29:48 UTC) #7
commit-bot: I haz the power
5 years, 1 month ago (2015-11-23 10:30:32 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d27423b8964575c526a9eec2e4c672f9d2036245
Cr-Commit-Position: refs/heads/master@{#361084}

Powered by Google App Engine
This is Rietveld 408576698