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

Issue 1952613002: Move LayoutDeprecatedFlexibleBox-specific line handling. (Closed)

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

Description

Move LayoutDeprecatedFlexibleBox-specific line handling. This is sort-of exotic functionality, in that it checks if the blocks have visibility:visible and auto height, so it fits better together with the LayoutDeprecatedFlexibleBox implementation. Nobody else needs this. The pagination code also needs to count lines, though, so I kept lineCount(), but moved it from LayoutBlock to LayoutBlockFlow, and threw away the parts that weren't needed (visibility check, recursing into child block flows, among other things). On the LayoutDeprecatedFlexibleBox, there are some changes. The functions now operate on LayoutBlockFlow instead of LayoutBlock, since it's dealing with lines. As a result, we need to replace some former isLayoutBlock() checks with isLayoutBlockFlow(). A similar change landed in WebKit years ago [1], so it should be safe. [1] https://bugs.webkit.org/show_bug.cgi?id=122969 BUG=302024 Committed: https://crrev.com/f42912bb9538bbd7c9817c4a210dd202b69be29f Cr-Commit-Position: refs/heads/master@{#391492}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Const all the things! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -133 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBlock.h View 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 1 chunk +0 lines, -113 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.h View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 1 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutDeprecatedFlexibleBox.cpp View 5 chunks +129 lines, -14 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
mstensho (USE GERRIT)
4 years, 7 months ago (2016-05-04 12:03:42 UTC) #2
eae
LGTM, deprecate all the things. https://codereview.chromium.org/1952613002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp File third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp (right): https://codereview.chromium.org/1952613002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp#newcode1946 third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp:1946: for (RootInlineBox* box = ...
4 years, 7 months ago (2016-05-04 12:07:27 UTC) #3
mstensho (USE GERRIT)
https://codereview.chromium.org/1952613002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp File third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp (right): https://codereview.chromium.org/1952613002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp#newcode1946 third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp:1946: for (RootInlineBox* box = firstRootBox(); box; box = box->nextRootBox()) ...
4 years, 7 months ago (2016-05-04 12:14:00 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1952613002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1952613002/20001
4 years, 7 months ago (2016-05-04 12:14:23 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-04 13:29:36 UTC) #8
commit-bot: I haz the power
4 years, 7 months ago (2016-05-04 13:30:51 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f42912bb9538bbd7c9817c4a210dd202b69be29f
Cr-Commit-Position: refs/heads/master@{#391492}

Powered by Google App Engine
This is Rietveld 408576698