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

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

Issue 2286403004: [LayoutNG] Initial NGLayoutOpportunityIterator implementation (Closed)
Patch Set: Fix typo Created 4 years, 3 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_constraint_space.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 NGConstraintSpace_h 5 #ifndef NGConstraintSpace_h
6 #define NGConstraintSpace_h 6 #define NGConstraintSpace_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_physical_constraint_space.h" 9 #include "core/layout/ng/ng_physical_constraint_space.h"
10 #include "core/layout/ng/ng_writing_mode.h" 10 #include "core/layout/ng/ng_writing_mode.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 class CORE_EXPORT NGLayoutOpportunityIterator final { 105 class CORE_EXPORT NGLayoutOpportunityIterator final {
106 public: 106 public:
107 NGLayoutOpportunityIterator(NGConstraintSpace* space, 107 NGLayoutOpportunityIterator(NGConstraintSpace* space,
108 unsigned clear, 108 unsigned clear,
109 bool for_inline_or_bfc) 109 bool for_inline_or_bfc)
110 : constraint_space_(space), 110 : constraint_space_(space),
111 clear_(clear), 111 clear_(clear),
112 for_inline_or_bfc_(for_inline_or_bfc) {} 112 for_inline_or_bfc_(for_inline_or_bfc) {}
113 ~NGLayoutOpportunityIterator() {} 113 ~NGLayoutOpportunityIterator() {}
114 114
115 const NGDerivedConstraintSpace* Next(); 115 NGConstraintSpace* Next();
116 116
117 private: 117 private:
118 Persistent<NGConstraintSpace> constraint_space_; 118 Persistent<NGConstraintSpace> constraint_space_;
119 unsigned clear_; 119 unsigned clear_;
120 bool for_inline_or_bfc_; 120 bool for_inline_or_bfc_;
121 }; 121 };
122 122
123 } // namespace blink 123 } // namespace blink
124 124
125 #endif // NGConstraintSpace_h 125 #endif // NGConstraintSpace_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698