OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef NGBreakToken_h | 5 #ifndef NGBreakToken_h |
6 #define NGBreakToken_h | 6 #define NGBreakToken_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/ng_layout_input_node.h" | 9 #include "core/layout/ng/ng_layout_input_node.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
11 #include "wtf/RefCounted.h" | 11 #include "platform/wtf/RefCounted.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 // A break token is a continuation token for layout. A single layout input node | 15 // A break token is a continuation token for layout. A single layout input node |
16 // can have multiple fragments asssociated with it. | 16 // can have multiple fragments asssociated with it. |
17 // | 17 // |
18 // Each fragment has a break token which can be used to determine if a layout | 18 // Each fragment has a break token which can be used to determine if a layout |
19 // input node has finished producing fragments (aka. is "exhausted" of | 19 // input node has finished producing fragments (aka. is "exhausted" of |
20 // fragments), and optionally used to produce the next fragment in the chain. | 20 // fragments), and optionally used to produce the next fragment in the chain. |
21 // | 21 // |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 private: | 59 private: |
60 unsigned type_ : 1; | 60 unsigned type_ : 1; |
61 unsigned status_ : 1; | 61 unsigned status_ : 1; |
62 | 62 |
63 Persistent<NGLayoutInputNode> node_; | 63 Persistent<NGLayoutInputNode> node_; |
64 }; | 64 }; |
65 | 65 |
66 } // namespace blink | 66 } // namespace blink |
67 | 67 |
68 #endif // NGBreakToken_h | 68 #endif // NGBreakToken_h |
OLD | NEW |