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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_block_break_token.cc

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 #include "core/layout/ng/ng_block_break_token.h"
6
7 #include "core/layout/ng/ng_block_node.h"
8
9 namespace blink {
10
11 NGBlockBreakToken::NGBlockBreakToken(
12 NGBlockNode* node,
13 LayoutUnit used_block_size,
14 HeapVector<Member<NGBreakToken>>& child_break_tokens)
15 : NGBreakToken(kBlockBreakToken, /* is_finished */ false, node),
Gleb Lanbin 2017/02/22 19:24:56 may be use enum instead of boolean NGBlockBreakTok
ikilpatrick 2017/02/22 20:25:27 Done.
16 used_block_size_(used_block_size) {
17 child_break_tokens_.swap(child_break_tokens);
18 }
19
20 NGBlockBreakToken::NGBlockBreakToken(NGBlockNode* node)
21 : NGBreakToken(kBlockBreakToken, /* is_finished */ true, node) {}
22
23 NGBlockBreakToken::NGBlockBreakToken(NGBlockNode* node, LayoutUnit break_offset)
24 : NGBreakToken(kBlockBreakToken, false, node),
25 break_offset_(break_offset) {}
26
27 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698