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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc

Issue 2457013004: Use NGLogicalRect instead of NGExclusion for exclusions. (Closed)
Patch Set: renamed IsWithing to IsContained 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc b/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc
index 567ed676320a6625e8cac1805e738dbce33c5f8c..8a176bcb16ac11b91a4d4c3b7b7a0bcf195535ff 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc
@@ -24,12 +24,13 @@ NGPhysicalConstraintSpace::NGPhysicalConstraintSpace(
height_direction_fragmentation_type_(height_direction_fragmentation_type),
is_new_fc_(is_new_fc) {}
-void NGPhysicalConstraintSpace::AddExclusion(const NGExclusion* exclusion,
+void NGPhysicalConstraintSpace::AddExclusion(const NGLogicalRect& exclusion,
unsigned options) {
- exclusions_.append(exclusion);
+ NGLogicalRect* exclusion_ptr = new NGLogicalRect(exclusion);
+ exclusions_.append(WTF::wrapUnique(exclusion_ptr));
}
-const HeapVector<Member<const NGExclusion>>&
+const Vector<std::unique_ptr<const NGLogicalRect>>&
NGPhysicalConstraintSpace::Exclusions(unsigned options) const {
// TODO(layout-ng): Filter based on options? Perhaps layout Opportunities
// should filter instead?

Powered by Google App Engine
This is Rietveld 408576698