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

Issue 2965573003: Refactor NGInlineNode::CollectInlines (both overloads) (Closed)

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

Refactor NGInlineNode::CollectInlines (both overloads) This patch does the following refactoring: 1. Remove the parameter NGInlineNode::CollectInlines(LayoutBlockFlow*) because it is always equal to GetLayoutBlockFlow(). 2. Change NGInlineNode::CollectInlines(LayoutBlockFlow*, NGInlineItemsBuilder*) to a local function of the .cc file, because it does not access any private member of NGInlineNode. 3. Move call sites of NGInlineItemsBuilder::EnterBlock and ExitBlock into the above local function, so that it is easier to reuse this function to build offset mapping. Step 3 is a preparation for crrev.com/2963093002 BUG=699017 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_layout_ng Review-Url: https://codereview.chromium.org/2965573003 Cr-Commit-Position: refs/heads/master@{#483585} Committed: https://chromium.googlesource.com/chromium/src/+/8cbc86dacc8e15bddeb0bae234ebb00fcc7550af

Patch Set 1 #

Total comments: 5

Patch Set 2 : Thu Jun 29 16:14:25 PDT 2017 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -22 lines) Patch
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.h View 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc View 1 3 chunks +22 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_test.cc View 5 chunks +5 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (9 generated)
Xiaocheng
PTAL. I'd like to make this change so that we can reuse CollectInlinesInternal for building ...
3 years, 5 months ago (2017-06-29 22:43:12 UTC) #6
eae
https://codereview.chromium.org/2965573003/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc (right): https://codereview.chromium.org/2965573003/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc#newcode195 third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc:195: // to the anonymous namespace. Please do this before ...
3 years, 5 months ago (2017-06-29 22:54:00 UTC) #7
Xiaocheng
Thanks for reviewing! https://codereview.chromium.org/2965573003/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc (right): https://codereview.chromium.org/2965573003/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc#newcode195 third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc:195: // to the anonymous namespace. On ...
3 years, 5 months ago (2017-06-29 23:16:19 UTC) #9
eae
On 2017/06/29 23:16:19, Xiaocheng wrote: > Thanks for reviewing! > > https://codereview.chromium.org/2965573003/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc > File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc ...
3 years, 5 months ago (2017-06-29 23:20:12 UTC) #10
eae
LGTM
3 years, 5 months ago (2017-06-29 23:20:53 UTC) #11
Xiaocheng
Thanks for reviewing! https://codereview.chromium.org/2965573003/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc (right): https://codereview.chromium.org/2965573003/diff/1/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc#newcode195 third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc:195: // to the anonymous namespace. On ...
3 years, 5 months ago (2017-06-29 23:33:06 UTC) #13
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/2965573003/40001
3 years, 5 months ago (2017-06-29 23:33:26 UTC) #14
commit-bot: I haz the power
3 years, 5 months ago (2017-06-30 01:46:51 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8cbc86dacc8e15bddeb0bae234eb...

Powered by Google App Engine
This is Rietveld 408576698