Commit cf421ea3 authored by Koji Ishii's avatar Koji Ishii Committed by Commit Bot

Update core/layout/ng/inline/README.md

Add inputs/outputs table for each inline layout phase.

TBR=yosin@chromium.org
NOTRY=True

Bug: 982194
Change-Id: I8a90b87b00dab13f9c06de693d8c808a971eb8b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2417677Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#808274}
parent a23da87e
...@@ -69,6 +69,16 @@ Inline layout is performed in the following phases: ...@@ -69,6 +69,16 @@ Inline layout is performed in the following phases:
3. **[Line box construction]** orders and positions items on a line. 3. **[Line box construction]** orders and positions items on a line.
4. **[Generate fragments]** generates physical fragments. 4. **[Generate fragments]** generates physical fragments.
| Phase | Input | Output |
|---|---|---|
| Pre-layout | LayoutObject | [NGInlineItem] |
| Line Breaking | [NGInlineItem] | [NGInlineItemResult] |
| Line box construction | [NGInlineItemResult] | [NGLogicalLineItem] |
| Generate fragments | [NGLogicalLineItem] | [NGPhysicalFragment] / [NGFragmentItem] |
Note: There is [an idea](https://docs.google.com/document/d/1dxzIHl1dwBtgeKgWd2cKcog8AyydN5rduQvXthMOMD0/edit?usp=sharing)
to merge [NGInlineItemResult] and [NGLogicalLineItem], but this hasn't been happened yet.
This is similar to [CSS Text Processing Order of Operations], This is similar to [CSS Text Processing Order of Operations],
but not exactly the same, but not exactly the same,
because the spec prioritizes the simple description than being accurate. because the spec prioritizes the simple description than being accurate.
...@@ -177,9 +187,6 @@ This phase consists of following sub-phases: ...@@ -177,9 +187,6 @@ This phase consists of following sub-phases:
6. Moves the baseline to the correct position 6. Moves the baseline to the correct position
based on the height of the line box. based on the height of the line box.
Note: There is [a discussion](https://docs.google.com/document/d/1dxzIHl1dwBtgeKgWd2cKcog8AyydN5rduQvXthMOMD0/edit?usp=sharing)
to merge [NGInlineItemResult] and [NGLogicalLineItem], but this hasn't been done yet.
[ellipsizing]: https://drafts.csswg.org/css-ui-3/#overflow-ellipsis [ellipsizing]: https://drafts.csswg.org/css-ui-3/#overflow-ellipsis
[line-left]: https://drafts.csswg.org/css-writing-modes-3/#line-left [line-left]: https://drafts.csswg.org/css-writing-modes-3/#line-left
[line-right]: https://drafts.csswg.org/css-writing-modes-3/#line-right [line-right]: https://drafts.csswg.org/css-writing-modes-3/#line-right
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment