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

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

Issue 2721613003: [LayoutNG] Move remaining ng_units structs to their own files (Closed)
Patch Set: Don't export NGBoxStrut for now 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 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 NGLayoutOpportunityTreeNode_h 5 #ifndef NGLayoutOpportunityTreeNode_h
6 #define NGLayoutOpportunityTreeNode_h 6 #define NGLayoutOpportunityTreeNode_h
7 7
8 #include "core/layout/ng/ng_units.h" 8 #include "core/layout/ng/geometry/ng_edge.h"
9 #include "core/layout/ng/geometry/ng_logical_rect.h"
10 #include "core/layout/ng/ng_exclusion.h"
9 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
10 12
11 namespace blink { 13 namespace blink {
12 14
13
14 // 3 node R-Tree that represents available space(left, bottom, right) or 15 // 3 node R-Tree that represents available space(left, bottom, right) or
15 // layout opportunity after the parent spatial rectangle is split by the 16 // layout opportunity after the parent spatial rectangle is split by the
16 // exclusion rectangle. 17 // exclusion rectangle.
17 struct CORE_EXPORT NGLayoutOpportunityTreeNode 18 struct CORE_EXPORT NGLayoutOpportunityTreeNode
18 : public GarbageCollected<NGLayoutOpportunityTreeNode> { 19 : public GarbageCollected<NGLayoutOpportunityTreeNode> {
19 public: 20 public:
20 // Default constructor. 21 // Default constructor.
21 // Creates a Layout Opportunity tree node that is limited by it's own edge 22 // Creates a Layout Opportunity tree node that is limited by it's own edge
22 // from above. 23 // from above.
23 // @param opportunity The layout opportunity for this node. 24 // @param opportunity The layout opportunity for this node.
(...skipping 21 matching lines...) Expand all
45 46
46 // Whether this node is a leaf node. 47 // Whether this node is a leaf node.
47 // The node is a leaf if it doesn't have an exclusion that splits it apart. 48 // The node is a leaf if it doesn't have an exclusion that splits it apart.
48 bool IsLeafNode() const { return !exclusion; } 49 bool IsLeafNode() const { return !exclusion; }
49 50
50 DECLARE_TRACE(); 51 DECLARE_TRACE();
51 }; 52 };
52 53
53 } // namespace blink 54 } // namespace blink
54 #endif // NGLayoutOpportunityTreeNode_h 55 #endif // NGLayoutOpportunityTreeNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698