OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/layout/ng/ng_block_break_token.h" | 5 #include "core/layout/ng/ng_block_break_token.h" |
6 | 6 |
7 #include "core/layout/ng/ng_block_node.h" | 7 #include "core/layout/ng/ng_block_node.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
11 NGBlockBreakToken::NGBlockBreakToken( | 11 NGBlockBreakToken::NGBlockBreakToken( |
12 NGBlockNode* node, | 12 NGLayoutInputNode* node, |
13 LayoutUnit used_block_size, | 13 LayoutUnit used_block_size, |
14 Vector<RefPtr<NGBreakToken>>& child_break_tokens) | 14 Vector<RefPtr<NGBreakToken>>& child_break_tokens) |
15 : NGBreakToken(kBlockBreakToken, kUnfinished, node), | 15 : NGBreakToken(kBlockBreakToken, kUnfinished, node), |
16 used_block_size_(used_block_size) { | 16 used_block_size_(used_block_size) { |
17 child_break_tokens_.swap(child_break_tokens); | 17 child_break_tokens_.swap(child_break_tokens); |
18 } | 18 } |
19 | 19 |
20 NGBlockBreakToken::NGBlockBreakToken(NGLayoutInputNode* node) | 20 NGBlockBreakToken::NGBlockBreakToken(NGLayoutInputNode* node) |
21 : NGBreakToken(kBlockBreakToken, kFinished, node) {} | 21 : NGBreakToken(kBlockBreakToken, kFinished, node) {} |
22 | 22 |
23 } // namespace blink | 23 } // namespace blink |
OLD | NEW |