Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |