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

Issue 2930963002: [LayoutNG] Refactor of NGLineBreaker. (Closed)

Created:
3 years, 6 months ago by ikilpatrick
Modified:
3 years, 6 months ago
Reviewers:
cbiesinger, kojii
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, lchoi+reviews_chromium.org, leviw+renderwatch, ojan+watch_chromium.org, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[LayoutNG] Refactor of NGLineBreaker. This patch does a few things because I got slightly carried away: - Removes the fact that NGLineBreaker takens an NGInlineAlgorithm as an argument. - Has better logic around resolving the BfcOffset of the container and positioning floats. We were previously doing this incorrectly. Specifically resolving too early if we just had floats. - Removes the available_width_ class member and makes it a stack allocated WTF::Optional for clarity now. - Tries to simplify a few other things. BUG=635619 Review-Url: https://codereview.chromium.org/2930963002 Cr-Commit-Position: refs/heads/master@{#479016} Committed: https://chromium.googlesource.com/chromium/src/+/f723897c7994e4ceee81dba57a6a3b94bc974a05

Patch Set 1 #

Total comments: 11

Patch Set 2 : comments. #

Patch Set 3 : rebase + move function #

Patch Set 4 : rebase #

Messages

Total messages: 37 (23 generated)
ikilpatrick
This fixes a bunch of tests which I'll update the testexpectations in a bit. A ...
3 years, 6 months ago (2017-06-08 20:50:18 UTC) #3
ikilpatrick
https://codereview.chromium.org/2930963002/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.cc File third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.cc (right): https://codereview.chromium.org/2930963002/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.cc#newcode130 third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.cc:130: // DO NOT SUBMIT: maybe kControl as well? kojii ...
3 years, 6 months ago (2017-06-08 20:53:18 UTC) #6
kojii
Thank you for working on this. I guess I need to study a bit more ...
3 years, 6 months ago (2017-06-09 13:32:18 UTC) #9
ikilpatrick
On 2017/06/09 13:32:18, kojii wrote: > Thank you for working on this. I guess I ...
3 years, 6 months ago (2017-06-09 17:03:52 UTC) #11
ikilpatrick
https://codereview.chromium.org/2930963002/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc (right): https://codereview.chromium.org/2930963002/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc#newcode387 third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc:387: {border_and_padding_.inline_start, content_size_}); On 2017/06/09 13:32:18, kojii wrote: > Minor, ...
3 years, 6 months ago (2017-06-09 17:04:07 UTC) #12
kojii
https://codereview.chromium.org/2930963002/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc (right): https://codereview.chromium.org/2930963002/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc#newcode378 third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc:378: // NGInlineLayoutAlgorithm. On 2017/06/09 at 17:04:07, ikilpatrick wrote: > ...
3 years, 6 months ago (2017-06-10 05:47:53 UTC) #16
ikilpatrick
https://codereview.chromium.org/2930963002/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc (right): https://codereview.chromium.org/2930963002/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc#newcode378 third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc:378: // NGInlineLayoutAlgorithm. On 2017/06/10 05:47:53, kojii wrote: > On ...
3 years, 6 months ago (2017-06-10 18:00:25 UTC) #17
kojii
On 2017/06/10 at 18:00:25, ikilpatrick wrote: > We can't do it after before we need ...
3 years, 6 months ago (2017-06-12 07:47:42 UTC) #18
ikilpatrick
ptal, move resolving bfc offset into function.
3 years, 6 months ago (2017-06-12 22:30:40 UTC) #21
kojii
lgtm, thank you for going through detailed explanation, that really helped me to understand better.
3 years, 6 months ago (2017-06-13 02:20:13 UTC) #24
kojii
Some of my CLs may have conflicted, sorry if so. I realized I should have ...
3 years, 6 months ago (2017-06-13 02:34:00 UTC) #25
kojii
Some of my CLs may have conflicted, sorry if so. I realized I should have ...
3 years, 6 months ago (2017-06-13 02:34:01 UTC) #26
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/2930963002/60001
3 years, 6 months ago (2017-06-13 14:42:39 UTC) #34
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 14:47:39 UTC) #37
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/f723897c7994e4ceee81dba57a6a...

Powered by Google App Engine
This is Rietveld 408576698