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

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

Issue 2714803002: [LayoutNG] Allow block-flow layout to be fragmented using new approach. (Closed)
Patch Set: rebase. Created 3 years, 9 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
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 NGBlockNode* node,
13 LayoutUnit used_block_size, 13 LayoutUnit used_block_size,
14 HeapVector<Member<NGBreakToken>>& child_break_tokens) 14 HeapVector<Member<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(NGBlockNode* node) 20 NGBlockBreakToken::NGBlockBreakToken(NGLayoutInputNode* node)
21 : NGBreakToken(kBlockBreakToken, kFinished, node) {} 21 : NGBreakToken(kBlockBreakToken, kFinished, node) {}
22 22
23 NGBlockBreakToken::NGBlockBreakToken(NGBlockNode* node, LayoutUnit break_offset)
24 : NGBreakToken(kBlockBreakToken, kUnfinished, node),
25 break_offset_(break_offset) {}
26
27 } // namespace blink 23 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698