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

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

Issue 2456973002: [LayoutNG] Move ng_block_layout_algorithm to use constraint space builder. (Closed)
Patch Set: rebase. 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_constraint_space.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
index 917ebd4f3127f817d41a9926866a54958a78f594..e0b69603a5af6899f9da56d0dbf6d6e2745a6376 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
@@ -31,16 +31,6 @@ class CORE_EXPORT NGConstraintSpace final
// coordinates.
NGConstraintSpace(NGWritingMode, NGDirection, NGPhysicalConstraintSpace*);
- // Constructs a derived constraint space that shares the exclusions of the
- // input constraint space, but has a different container size, writing mode
- // and direction. Sets the offset to zero. For use by layout algorithms
- // to use as the basis to find layout opportunities for children.
- // TODO(layout-dev): Remove once NGConstraintSpaceBuilder exists.
- NGConstraintSpace(NGWritingMode,
- NGDirection,
- const NGConstraintSpace& other,
- NGLogicalSize);
-
// This should live on NGBox or another layout bridge and probably take a root
// NGConstraintSpace or a NGPhysicalConstraintSpace.
static NGConstraintSpace* CreateFromLayoutObject(const LayoutBox&);
@@ -83,6 +73,9 @@ class CORE_EXPORT NGConstraintSpace final
// return the size of the layout opportunity.
virtual NGLogicalSize Size() const { return size_; }
+ // Sets the effective size of the constraint space.
+ void SetSize(NGLogicalSize);
+
// Whether the current constraint space is for the newly established
// Formatting Context.
bool IsNewFormattingContext() const;
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_box.cc ('k') | 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