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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator.h

Issue 2706353004: [LayoutNG] Introduce block child iterator. (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NGBlockChildIterator_h
6 #define NGBlockChildIterator_h
7
8 #include "core/CoreExport.h"
9 #include "platform/heap/Handle.h"
10
11 namespace blink {
12
13 class NGLayoutInputNode;
14 class NGBreakToken;
15 class NGBlockBreakToken;
16
17 // A utility class for block-flow layout which given the first child and a
18 // break token will iterator through unfinished children.
atotic 2017/02/22 05:45:07 s/iterator/iterate ? As a user of iterator API, I
ikilpatrick 2017/02/22 18:47:19 Done?
19 class CORE_EXPORT NGBlockChildIterator {
20 public:
21 NGBlockChildIterator(NGLayoutInputNode* first_child,
22 NGBlockBreakToken* break_token);
23
24 // Returns the next input node which should be laid out, along with its
25 // respective break token.
26 std::pair<NGLayoutInputNode*, NGBreakToken*> NextChild();
27
28 private:
29 Persistent<NGLayoutInputNode> child_;
30 Persistent<NGBlockBreakToken> break_token_;
31
32 size_t child_token_idx_;
mstensho (USE GERRIT) 2017/02/22 13:11:31 Please document what this is.
ikilpatrick 2017/02/22 18:47:19 Done.
33 };
34
35 } // namespace blink
36
37 #endif // NGBlockChildIterator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698