| 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 NGBlockNode_h | 5 #ifndef NGBlockNode_h |
| 6 #define NGBlockNode_h | 6 #define NGBlockNode_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/layout/LayoutBox.h" | 9 #include "core/layout/LayoutBox.h" |
| 10 #include "core/layout/ng/ng_layout_input_node.h" | 10 #include "core/layout/ng/ng_layout_input_node.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // We can either wrap a layout_box_ or a next_sibling_/first_child_ | 72 // We can either wrap a layout_box_ or a next_sibling_/first_child_ |
| 73 // combination. | 73 // combination. |
| 74 LayoutBox* layout_box_; | 74 LayoutBox* layout_box_; |
| 75 Member<NGLayoutInputNode> next_sibling_; | 75 Member<NGLayoutInputNode> next_sibling_; |
| 76 Member<NGLayoutInputNode> first_child_; | 76 Member<NGLayoutInputNode> first_child_; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 DEFINE_TYPE_CASTS(NGBlockNode, | 79 DEFINE_TYPE_CASTS(NGBlockNode, |
| 80 NGLayoutInputNode, | 80 NGLayoutInputNode, |
| 81 node, | 81 node, |
| 82 node->Type() == NGLayoutInputNode::kLegacyBlock, | 82 node->IsBlock(), |
| 83 node.Type() == NGLayoutInputNode::kLegacyBlock); | 83 node.IsBlock()); |
| 84 | 84 |
| 85 } // namespace blink | 85 } // namespace blink |
| 86 | 86 |
| 87 #endif // NGBlockNode | 87 #endif // NGBlockNode |
| OLD | NEW |