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

Issue 2753743003: Make NGFragmentBuilder to keep track on text children. (Closed)

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

Description

Make NGFragmentBuilder to keep track on text children. This patch adds methods to access text children and their offsets from NGFragmentBuilder, so they can be accessed from NGLineBuilder. Also we want NGLineBuilder to have the class variable container_builder_ so we can add positioned floats directly to the fragment builder bypassing any additional lists in between. BUG=635619 Review-Url: https://codereview.chromium.org/2753743003 Cr-Commit-Position: refs/heads/master@{#457633} Committed: https://chromium.googlesource.com/chromium/src/+/06f0e62cf0feb57ba69bb6f31d09e17d8a2cc073

Patch Set 1 #

Patch Set 2 : add container_layout_result_ to store BoxContainer layout result #

Total comments: 2

Patch Set 3 : get a raw ptr of NGPhysicalFragment instead of RefPtr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -32 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_box_fragment.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h View 1 3 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_line_builder.h View 1 4 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc View 1 2 6 chunks +21 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_text_fragment.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (13 generated)
Gleb Lanbin
3 years, 9 months ago (2017-03-15 22:26:34 UTC) #2
kojii
Thanks for coming up this. I'm happy to make children in FragmentBuilder mutable, that helps ...
3 years, 9 months ago (2017-03-16 06:45:48 UTC) #3
ikilpatrick
On 2017/03/16 06:45:48, kojii wrote: > Thanks for coming up this. > > I'm happy ...
3 years, 9 months ago (2017-03-16 16:28:00 UTC) #4
kojii
On 2017/03/16 at 16:28:00, ikilpatrick wrote: > NGLineBuilder should really be NGInlineLayoutAlgorithm :). Yup, it's ...
3 years, 9 months ago (2017-03-16 17:02:48 UTC) #7
ikilpatrick
ok, lgtm https://codereview.chromium.org/2753743003/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc File third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc (right): https://codereview.chromium.org/2753743003/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc#newcode413 third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc:413: box_fragment->Children()[fragment_index]; this gan just be a raw ...
3 years, 9 months ago (2017-03-16 21:14:17 UTC) #10
Gleb Lanbin
https://codereview.chromium.org/2753743003/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc File third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc (right): https://codereview.chromium.org/2753743003/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc#newcode413 third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc:413: box_fragment->Children()[fragment_index]; On 2017/03/16 21:14:16, ikilpatrick wrote: > this gan ...
3 years, 9 months ago (2017-03-16 21:20:19 UTC) #11
Gleb Lanbin
3 years, 9 months ago (2017-03-16 21:20:20 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/2753743003/40001
3 years, 9 months ago (2017-03-17 00:27:09 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 00:50:09 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/06f0e62cf0feb57ba69bb6f31d09...

Powered by Google App Engine
This is Rietveld 408576698