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

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

Issue 2463703003: blink: Cleanup core class forward declarations (Closed)
Patch Set: Remove redundant empty lines Created 4 years, 1 month 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/ng_units.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class NGConstraintSpace;
14 struct NGExclusion; 13 struct NGExclusion;
15 14
16 // 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
17 // layout opportunity after the parent spatial rectangle is split by the 16 // layout opportunity after the parent spatial rectangle is split by the
18 // exclusion rectangle. 17 // exclusion rectangle.
19 struct CORE_EXPORT NGLayoutOpportunityTreeNode 18 struct CORE_EXPORT NGLayoutOpportunityTreeNode
20 : public GarbageCollected<NGLayoutOpportunityTreeNode> { 19 : public GarbageCollected<NGLayoutOpportunityTreeNode> {
21 // Default constructor. 20 // Default constructor.
22 // Creates a Layout Opportunity tree node that is limited by it's own edge 21 // Creates a Layout Opportunity tree node that is limited by it's own edge
23 // from above. 22 // from above.
(...skipping 22 matching lines...) Expand all
46 45
47 // Whether this node is a leaf node. 46 // Whether this node is a leaf node.
48 // The node is a leaf if it doesn't have an exclusion that splits it apart. 47 // The node is a leaf if it doesn't have an exclusion that splits it apart.
49 bool IsLeafNode() const { return !exclusion; } 48 bool IsLeafNode() const { return !exclusion; }
50 49
51 DECLARE_TRACE(); 50 DECLARE_TRACE();
52 }; 51 };
53 52
54 } // namespace blink 53 } // namespace blink
55 #endif // NGLayoutOpportunityTreeNode_h 54 #endif // NGLayoutOpportunityTreeNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698