summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/layout/ng/ng_simplified_layout_algorithm.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/ng/ng_simplified_layout_algorithm.h')
-rw-r--r--chromium/third_party/blink/renderer/core/layout/ng/ng_simplified_layout_algorithm.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/ng/ng_simplified_layout_algorithm.h b/chromium/third_party/blink/renderer/core/layout/ng/ng_simplified_layout_algorithm.h
index e7733810a82..c2d2cd2e6d8 100644
--- a/chromium/third_party/blink/renderer/core/layout/ng/ng_simplified_layout_algorithm.h
+++ b/chromium/third_party/blink/renderer/core/layout/ng/ng_simplified_layout_algorithm.h
@@ -40,9 +40,23 @@ class CORE_EXPORT NGSimplifiedLayoutAlgorithm
NGBlockBreakToken> {
public:
NGSimplifiedLayoutAlgorithm(const NGLayoutAlgorithmParams&,
- const NGLayoutResult&);
+ const NGLayoutResult&,
+ bool keep_old_size = false);
+ // Perform a simple copy of all children of the old fragment.
+ void CloneOldChildren();
+
+ void AppendNewChildFragment(const NGPhysicalFragment&, LogicalOffset);
+
+ // Just create a new layout result based on the current builder state. To be
+ // used after CloneOldChildren() / AppendNewChildFragment().
+ scoped_refptr<const NGLayoutResult> CreateResultAfterManualChildLayout();
+
+ // Attempt to perform simplified layout on all children and return a new
+ // result. If nullptr is returned, it means that simplified layout isn't
+ // possible.
scoped_refptr<const NGLayoutResult> Layout() override;
+
MinMaxSizesResult ComputeMinMaxSizes(
const MinMaxSizesFloatInput&) const override {
NOTREACHED();