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

Issue 2676533003: [LayoutNG] Convert physical fragments to being RefCounted. (Closed)

Created:
3 years, 10 months ago by ikilpatrick
Modified:
3 years, 10 months ago
Reviewers:
cbiesinger, eae
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, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[LayoutNG] Convert physical fragments to being RefCounted. A few changes in this patch: NGPhysicalFragment becomes RefCounted. NGFragment "views" becomes stack allocated. (also remove an unused param). NGFragmentBuilder moves off oil-pan to used being unique_ptr (this one was done because the "build" step would have required conversion from oilpan to non-oilpan code). BUG=635619 Review-Url: https://codereview.chromium.org/2676533003 Cr-Commit-Position: refs/heads/master@{#448211} Committed: https://chromium.googlesource.com/chromium/src/+/c4ef48dc4fb378c5d83ceb81b4417d74317596ae

Patch Set 1 #

Patch Set 2 : tests work \o/ #

Patch Set 3 : update. #

Patch Set 4 : update #

Patch Set 5 : update! #

Patch Set 6 : update? #

Patch Set 7 : will it blend? #

Patch Set 8 : rm mem leak? #

Patch Set 9 : add deref to NGPhysicalFragment. #

Patch Set 10 : fix inline test leak by deleteing line box tree. #

Total comments: 6

Patch Set 11 : address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -375 lines) Patch
M third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h View 1 2 5 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 3 4 5 6 7 8 12 chunks +38 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 1 2 3 4 5 34 chunks +124 lines, -102 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_node.h View 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_node.cc View 1 2 3 4 5 6 9 chunks +15 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_box_fragment.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_floating_object.h View 3 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment.h View 1 2 3 4 5 2 chunks +6 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h View 1 2 7 chunks +15 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc View 1 2 3 4 5 6 7 3 chunks +23 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.h View 4 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_node.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_node_test.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_line_builder.h View 3 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +18 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part.h View 2 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part.cc View 1 2 3 7 chunks +19 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h View 2 chunks +7 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.cc View 2 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_text_fragment.h View 3 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_text_fragment.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/NGInlineLayoutTest.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 38 (31 generated)
ikilpatrick
3 years, 10 months ago (2017-02-03 05:00:01 UTC) #8
eae
You're on fire this week! LGTM
3 years, 10 months ago (2017-02-03 18:50:38 UTC) #19
cbiesinger
lgtm https://codereview.chromium.org/2676533003/diff/180001/third_party/WebKit/Source/core/layout/ng/ng_fragment.h File third_party/WebKit/Source/core/layout/ng/ng_fragment.h (left): https://codereview.chromium.org/2676533003/diff/180001/third_party/WebKit/Source/core/layout/ng/ng_fragment.h#oldcode21 third_party/WebKit/Source/core/layout/ng/ng_fragment.h:21: TextDirection Direction() const { Don't you need the ...
3 years, 10 months ago (2017-02-03 19:43:40 UTC) #20
ikilpatrick
https://codereview.chromium.org/2676533003/diff/180001/third_party/WebKit/Source/core/layout/ng/ng_fragment.h File third_party/WebKit/Source/core/layout/ng/ng_fragment.h (left): https://codereview.chromium.org/2676533003/diff/180001/third_party/WebKit/Source/core/layout/ng/ng_fragment.h#oldcode21 third_party/WebKit/Source/core/layout/ng/ng_fragment.h:21: TextDirection Direction() const { On 2017/02/03 19:43:40, cbiesinger wrote: ...
3 years, 10 months ago (2017-02-04 09:45:57 UTC) #23
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/2676533003/200001
3 years, 10 months ago (2017-02-06 00:45:50 UTC) #32
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/2676533003/200001
3 years, 10 months ago (2017-02-06 00:47:05 UTC) #35
commit-bot: I haz the power
3 years, 10 months ago (2017-02-06 05:38:58 UTC) #38
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/c4ef48dc4fb378c5d83ceb81b441...

Powered by Google App Engine
This is Rietveld 408576698