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

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: address comments. 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
(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, kUnfinished, node),
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, kFinished, node) {}
22
23 NGBlockBreakToken::NGBlockBreakToken(NGBlockNode* node, LayoutUnit break_offset)
24 : NGBreakToken(kBlockBreakToken, kUnfinished, node),
25 break_offset_(break_offset) {}
26
27 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698