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

Issue 2948743002: [LayoutNG] Let NGLineBreaker pass line box location to NGInlineLayoutAlgorithm (Closed)

Created:
3 years, 6 months ago by kojii
Modified:
3 years, 6 months ago
Reviewers:
ikilpatrick
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] Let NGLineBreaker pass line box location to NGInlineLayoutAlgorithm Now that NGLineBreaker knows layout opportunities and BFC offset and computes line box positions for floats, this patch passes the information to NGInlineLayoutAlgorithm to avoid re-compute. This will also allow NGLineBreaker to set line-top, which will be needed when it needs to push lines down; e.g., when it find 100% width floats. BUG=636993 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_layout_ng Review-Url: https://codereview.chromium.org/2948743002 Cr-Commit-Position: refs/heads/master@{#481126} Committed: https://chromium.googlesource.com/chromium/src/+/99455058b030b33f127b6d0e897c2d13c955400a

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : WIP #

Patch Set 4 : Cleanup #

Total comments: 1

Patch Set 5 : ikilpatrick review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -45 lines) Patch
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.h View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.h View 1 2 3 4 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc View 1 2 3 4 4 chunks +8 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.h View 1 2 3 4 3 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.cc View 1 2 3 4 3 chunks +21 lines, -4 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 22 (15 generated)
kojii
PTAL. This is on top of the other CL.
3 years, 6 months ago (2017-06-20 17:39:30 UTC) #6
kojii
Is "100% width floats" what you were talking about today? If so, it's on my ...
3 years, 6 months ago (2017-06-20 17:45:54 UTC) #7
ikilpatrick
On 2017/06/20 17:45:54, kojii wrote: > Is "100% width floats" what you were talking about ...
3 years, 6 months ago (2017-06-20 23:54:31 UTC) #10
ikilpatrick
https://codereview.chromium.org/2948743002/diff/60001/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/2948743002/diff/60001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc#newcode219 third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc:219: // NGLineBreaker should have determined we need a line ...
3 years, 6 months ago (2017-06-20 23:54:39 UTC) #11
kojii
On 2017/06/20 at 23:54:31, ikilpatrick wrote: > it was actually for this case: > https://www.software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0A%23c%20%7B%20width%3A%20200px%3B%20border%3A%20solid%202px%3B%20height%3A%20100px%3B%20%7D%0A%23float%20%7B%20width%3A%20100px%3B%20height%3A%2020px%3B%20background%3A%20red%3B%20%7D%0A%23atomic%20%7B%20display%3A%20inline-block%3B%20width%3A%2060%25%3B%20height%3A%2020px%3B%20background%3A%20purple%3B%20%7D%0A%3C%2Fstyle%3E%0A%3Cdiv%20id%3Dc%3E%0A%20%20%3Cdiv%20id%3Dfloat%3E%3C%2Fdiv%3E%0A%20%20%3Cspan%3E%3Cdiv%20id%3Datomic%3E%3C%2Fdiv%3E%20text%20text%20text%3C%2Fspan%3E%0A%3C%2Fdiv%3E ...
3 years, 6 months ago (2017-06-21 03:30:39 UTC) #12
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/2948743002/80001
3 years, 6 months ago (2017-06-21 06:36:33 UTC) #19
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 06:41:46 UTC) #22
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/99455058b030b33f127b6d0e897c...

Powered by Google App Engine
This is Rietveld 408576698