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

Issue 2706403008: [LayoutNG] Implement ComputeMinAndMaxContentSizes for inline (Closed)

Created:
3 years, 10 months ago by kojii
Modified:
3 years, 9 months ago
Reviewers:
cbiesinger
CC:
atotic+reviews_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, cbiesinger, chromium-reviews, dgrogan+ng_chromium.org, eae+blinkwatch, glebl+reviews_chromium.org, jchaffraix+rendering, leviw+renderwatch, ojan+watch_chromium.org, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[LayoutNG] Implement ComputeMinAndMaxContentSizes for inline This patch implements ComputeMinAndMaxContentSizes for NGInlineNode, and changes NGBlockLayoutAlgorithm::ComputeMinAndMaxContentSizes to call it when it found inline children. BUG=636993 Review-Url: https://codereview.chromium.org/2706403008 Cr-Commit-Position: refs/heads/master@{#453513} Committed: https://chromium.googlesource.com/chromium/src/+/1aebff2782292aed9da6a88bf3e98dc8a280c605

Patch Set 1 #

Patch Set 2 : Cleanup and add a test #

Total comments: 4

Patch Set 3 : cbiesinger review, add comments, add and fix tests #

Patch Set 4 : Change the way to load ahem to make asan bot happy #

Total comments: 6

Patch Set 5 : cbiesinger review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -16 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 3 4 2 chunks +21 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_node.h View 1 2 3 4 4 chunks +16 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc View 1 2 3 chunks +31 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_node_test.cc View 1 2 3 4 chunks +42 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_line_builder.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (24 generated)
kojii
PTAL.
3 years, 10 months ago (2017-02-23 14:04:32 UTC) #8
cbiesinger
https://codereview.chromium.org/2706403008/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2706403008/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode341 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:341: sizes.min_content = std::max(sizes.min_content, child_sizes.min_content); This assumes you can linebreak ...
3 years, 10 months ago (2017-02-23 19:07:01 UTC) #11
kojii
https://codereview.chromium.org/2706403008/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2706403008/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode341 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:341: sizes.min_content = std::max(sizes.min_content, child_sizes.min_content); On 2017/02/23 at 19:07:01, cbiesinger ...
3 years, 10 months ago (2017-02-24 01:55:49 UTC) #12
kojii
PTAL, added comments for clarification, and added a test for multiple spans. Your comments reminded ...
3 years, 10 months ago (2017-02-24 07:11:35 UTC) #18
cbiesinger
lgtm, but see comments below https://codereview.chromium.org/2706403008/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2706403008/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode333 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:333: // following inline siblings ...
3 years, 9 months ago (2017-02-27 23:16:17 UTC) #25
kojii
Thank you for your review, all done! https://codereview.chromium.org/2706403008/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2706403008/diff/100001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode333 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:333: // following ...
3 years, 9 months ago (2017-02-28 03:30:37 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2706403008/120001
3 years, 9 months ago (2017-02-28 03:31:00 UTC) #29
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 05:35:37 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/1aebff2782292aed9da6a88bf3e9...

Powered by Google App Engine
This is Rietveld 408576698