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

Issue 2551793002: [LayoutNG] NGInlineLayoutAlgorithm and NGTextLayoutAlgorithm (Closed)

Created:
4 years ago by kojii
Modified:
4 years ago
Reviewers:
ikilpatrick, eae
CC:
atotic+reviews_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, cbiesinger, chromium-reviews, 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] NGInlineLayoutAlgorithm and NGTextLayoutAlgorithm This patch is an initial try to setup call flows and produces fragment tree for inline layout, a step towards to NG inline layout to produce LayoutObject tree. Most of the necessary logic are still missing. For sizing the block container, the logic should be shared with NGBlockLayoutAlgorithm using composition. This will be filled in future patches. For more steps of inline layout (e.g., line breaking, bidi reordering), making the fragment tree meaningful, copying the fragment tree to LayoutObject tree, etc. will be in future patches too. NGInlineLayoutTest is changed to test the result after layout completes, as NGInlineBox collects inline text during the layout in this patch. BUG=636993 Committed: https://crrev.com/73b62a1f1cf86534688657895c781abacfa615c4 Cr-Commit-Position: refs/heads/master@{#437828}

Patch Set 1 #

Patch Set 2 : Don't inherit from NGBlockLayoutAlgorithm #

Total comments: 1

Patch Set 3 : Cleanup, fix tests #

Patch Set 4 : Resolved merge conflicts #

Patch Set 5 : Resolved merge conflicts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -15 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.h View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc View 1 2 3 2 chunks +60 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_node.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc View 1 2 3 4 5 chunks +35 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.cc View 1 2 3 4 2 chunks +19 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/NGInlineLayoutTest.cpp View 1 2 2 chunks +10 lines, -6 lines 0 comments Download

Messages

Total messages: 34 (21 generated)
kojii
Far from landing but early feedback is appreciated. * NGInlineLayoutAlgorithm needs a lot from NGBlockLayoutAlgorithm, ...
4 years ago (2016-12-05 07:28:37 UTC) #3
eae
On 2016/12/05 07:28:37, kojii wrote: > Far from landing but early feedback is appreciated. > ...
4 years ago (2016-12-05 13:54:58 UTC) #4
ikilpatrick
+1 on breaking the inheritance between NGInlineAlgorithm and NGBlockAlgorithm, rough approach looks good!
4 years ago (2016-12-06 17:22:51 UTC) #5
kojii
PS2 stopped inheriting. Most logic were removed for now. Is it ok to make the ...
4 years ago (2016-12-07 18:40:04 UTC) #6
kojii
https://codereview.chromium.org/2551793002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc File third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc (right): https://codereview.chromium.org/2551793002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc#newcode219 third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc:219: // rest empty? or maybe we should attach to ...
4 years ago (2016-12-07 18:44:57 UTC) #7
eae
This looks great. Ian, any objections?
4 years ago (2016-12-07 21:31:47 UTC) #8
kojii
PTAL. Cleaned up, fixed tests, updated description.
4 years ago (2016-12-08 08:54:39 UTC) #15
ikilpatrick
lgtm , yeah lets sync about what we want the tree to look like. also ...
4 years ago (2016-12-08 22:34:37 UTC) #16
eae
LGTM
4 years ago (2016-12-09 01:25:10 UTC) #17
kojii
On 2016/12/08 at 22:34:37, ikilpatrick wrote: > also can you wait until: https://codereview.chromium.org/2519263002 > has ...
4 years ago (2016-12-09 02:46:51 UTC) #18
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/2551793002/80001
4 years ago (2016-12-12 07:00:23 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-12 07:06:56 UTC) #32
commit-bot: I haz the power
4 years ago (2016-12-12 15:10:56 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/73b62a1f1cf86534688657895c781abacfa615c4
Cr-Commit-Position: refs/heads/master@{#437828}

Powered by Google App Engine
This is Rietveld 408576698