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

Issue 2960673004: Templatize NGInlineItemsBuilder to take a OffsetMappingBuilder parameter (Closed)

Created:
3 years, 5 months ago by Xiaocheng
Modified:
3 years, 5 months ago
Reviewers:
yoichio, kojii, yosin_UTC9
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

Templatize NGInlineItemsBuilder to take a OffsetMappingBuilder parameter This patch templatizes NGInlineItemsBuilder with an additional parameter OffsetMappingBuilder, but does not do anything with the new parameter, and hence, does not introduce any new behavior yet. A follow-up patch (*) will pass in a real offset mapping builder, and make NGInlineItemsBuilder also construct the whitespace-collapsed offset mapping with the passed-in builder. Design doc of offset mapping: https://goo.gl/CJbxky * crrev.com/2943573002 BUG=699017 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_layout_ng Review-Url: https://codereview.chromium.org/2960673004 Cr-Commit-Position: refs/heads/master@{#483145} Committed: https://chromium.googlesource.com/chromium/src/+/1bc92de1145d6d9afe97605bd39808b547bd1ae8

Patch Set 1 #

Patch Set 2 : Tue Jun 27 19:52:24 PDT 2017 #

Patch Set 3 : Move EmptyOffsetMappingBuilder to separate file #

Patch Set 4 : Fix grammar #

Total comments: 2

Patch Set 5 : Tue Jun 27 22:19:26 PDT 2017 #

Total comments: 1

Patch Set 6 : Move EmptyOffsetMappingBuilder to ng/inline/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -49 lines) Patch
M third_party/WebKit/Source/core/layout/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/core/layout/ng/inline/empty_offset_mapping_builder.h View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h View 1 2 3 4 5 3 chunks +14 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.cc View 14 chunks +83 lines, -45 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.h View 2 chunks +6 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (18 generated)
Xiaocheng
PTAL. This is a preparation patch for crrev.com/2943573002, since with the new design, the nullptr ...
3 years, 5 months ago (2017-06-28 02:57:41 UTC) #4
yosin_UTC9
https://codereview.chromium.org/2960673004/diff/60001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h (right): https://codereview.chromium.org/2960673004/diff/60001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h#newcode93 third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h:93: OffsetMappingBuilder mapping_builder_; Could you upload the patch which using ...
3 years, 5 months ago (2017-06-28 03:37:11 UTC) #7
Xiaocheng
https://codereview.chromium.org/2960673004/diff/60001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h (right): https://codereview.chromium.org/2960673004/diff/60001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h#newcode93 third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h:93: OffsetMappingBuilder mapping_builder_; On 2017/06/28 at 03:37:11, yosin_UTC9 wrote: > ...
3 years, 5 months ago (2017-06-28 03:44:42 UTC) #8
yosin_UTC9
On 2017/06/28 at 03:44:42, xiaochengh wrote: > https://codereview.chromium.org/2960673004/diff/60001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h > File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h (right): > > https://codereview.chromium.org/2960673004/diff/60001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h#newcode93 ...
3 years, 5 months ago (2017-06-28 04:06:27 UTC) #9
Xiaocheng
Updated with |mapping_builder_| moved to the follow-up patch. PTAL.
3 years, 5 months ago (2017-06-28 05:30:00 UTC) #13
kojii
Ah...this doesn't call any functions of the template? Can you include the real one, or ...
3 years, 5 months ago (2017-06-28 06:15:53 UTC) #16
Xiaocheng
On 2017/06/28 at 06:15:53, kojii wrote: > Ah...this doesn't call any functions of the template? ...
3 years, 5 months ago (2017-06-28 07:03:44 UTC) #17
kojii
lgtm w/nit https://codereview.chromium.org/2960673004/diff/80001/third_party/WebKit/Source/core/layout/BUILD.gn File third_party/WebKit/Source/core/layout/BUILD.gn (right): https://codereview.chromium.org/2960673004/diff/80001/third_party/WebKit/Source/core/layout/BUILD.gn#newcode328 third_party/WebKit/Source/core/layout/BUILD.gn:328: "ng/api/empty_offset_mapping_builder.h", Please put this into "inline" directory.
3 years, 5 months ago (2017-06-28 07:45:29 UTC) #20
Xiaocheng
Thanks for reviewing! Committing with EmptyOffsetMappingBuilder moved to ng/inline/
3 years, 5 months ago (2017-06-28 18:11:48 UTC) #22
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/2960673004/100001
3 years, 5 months ago (2017-06-28 18:12:17 UTC) #24
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/2960673004/100001
3 years, 5 months ago (2017-06-28 19:47:42 UTC) #27
commit-bot: I haz the power
3 years, 5 months ago (2017-06-28 21:25:57 UTC) #30
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/1bc92de1145d6d9afe97605bd398...

Powered by Google App Engine
This is Rietveld 408576698