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

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

Issue 2438313003: [LayoutNG] Remove derived constraint spaces from opportunity iterator. (Closed)
Patch Set: .. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.h b/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.h
index 58040acb597a553a45bf8647c26a26e971e7c871..45ffd525f81b39a38666b1865c5fbd5236300c82 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.h
@@ -16,10 +16,10 @@
namespace blink {
typedef const NGConstraintSpace NGLayoutOpportunity;
Gleb Lanbin 2016/10/21 21:06:58 change typedef const NGConstraintSpace NGLayoutOpp
ikilpatrick 2016/10/21 21:45:27 Done.
-typedef HeapVector<Member<const NGLayoutOpportunity>> NGLayoutOpportunities;
+typedef Vector<NGLogicalRect> NGLayoutOpportunities;
Gleb Lanbin 2016/10/21 21:06:58 typedef Vector<const NGLayoutOpportunity> NGLayout
ikilpatrick 2016/10/21 21:45:27 Done.
class CORE_EXPORT NGLayoutOpportunityIterator final
- : public GarbageCollected<NGLayoutOpportunityIterator> {
+ : public GarbageCollectedFinalized<NGLayoutOpportunityIterator> {
public:
NGLayoutOpportunityIterator(NGConstraintSpace* space,
unsigned clear,
@@ -27,11 +27,10 @@ class CORE_EXPORT NGLayoutOpportunityIterator final
// Gets the next Layout Opportunity or nullptr if the search is exhausted.
// TODO(chrome-layout-team): Refactor with using C++ <iterator> library.
- NGLayoutOpportunity* Next();
+ const NGLogicalRect* Next();
DEFINE_INLINE_VIRTUAL_TRACE() {
visitor->trace(constraint_space_);
- visitor->trace(opportunities_);
visitor->trace(opportunity_tree_root_);
}
@@ -39,7 +38,7 @@ class CORE_EXPORT NGLayoutOpportunityIterator final
Member<NGConstraintSpace> constraint_space_;
NGLayoutOpportunities opportunities_;
- Vector<Member<NGLayoutOpportunity>>::const_iterator opportunity_iter_;
+ NGLayoutOpportunities::const_iterator opportunity_iter_;
Member<NGLayoutOpportunityTreeNode> opportunity_tree_root_;
};

Powered by Google App Engine
This is Rietveld 408576698