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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_block_node.h

Issue 2797053002: Remove redundant casts, use NGLayoutInputNode base functions everywhere (Closed)
Patch Set: Created 3 years, 8 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698