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; |