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

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

Issue 2750153003: Move NGLayoutOpportunityTreeNode off Oilpan (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 NGLayoutOpportunityIterator_h 5 #ifndef NGLayoutOpportunityIterator_h
6 #define NGLayoutOpportunityIterator_h 6 #define NGLayoutOpportunityIterator_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_layout_opportunity_tree_node.h" 9 #include "core/layout/ng/ng_layout_opportunity_tree_node.h"
10 #include "platform/heap/Handle.h"
11 #include "wtf/Optional.h" 10 #include "wtf/Optional.h"
12 #include "wtf/Vector.h" 11 #include "wtf/Vector.h"
13 #include "wtf/text/StringBuilder.h" 12 #include "wtf/text/StringBuilder.h"
14 13
15 namespace blink { 14 namespace blink {
16 15
17 class NGConstraintSpace; 16 class NGConstraintSpace;
18 typedef NGLogicalRect NGLayoutOpportunity; 17 typedef NGLogicalRect NGLayoutOpportunity;
19 typedef Vector<NGLayoutOpportunity> NGLayoutOpportunities; 18 typedef Vector<NGLayoutOpportunity> NGLayoutOpportunities;
20 19
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 55
57 // Read-only Getters. 56 // Read-only Getters.
58 const NGLayoutOpportunityTreeNode* OpportunityTreeRoot() const { 57 const NGLayoutOpportunityTreeNode* OpportunityTreeRoot() const {
59 return opportunity_tree_root_.get(); 58 return opportunity_tree_root_.get();
60 } 59 }
61 60
62 const NGConstraintSpace* constraint_space_; 61 const NGConstraintSpace* constraint_space_;
63 62
64 NGLayoutOpportunities opportunities_; 63 NGLayoutOpportunities opportunities_;
65 NGLayoutOpportunities::const_iterator opportunity_iter_; 64 NGLayoutOpportunities::const_iterator opportunity_iter_;
66 Persistent<NGLayoutOpportunityTreeNode> opportunity_tree_root_; 65 std::unique_ptr<NGLayoutOpportunityTreeNode> opportunity_tree_root_;
67 NGLogicalOffset offset_; 66 NGLogicalOffset offset_;
68 }; 67 };
69 68
70 } // namespace blink 69 } // namespace blink
71 70
72 #endif // NGLayoutOpportunityIterator_h 71 #endif // NGLayoutOpportunityIterator_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698