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

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

Issue 2702403003: [layoutng] Split NGLayoutResult out of NGPhysicalFragment (Closed)
Patch Set: rebased Created 3 years, 10 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_block_layout_algorithm.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
index 74365e488fe43b3c00cdcd0adb8695e4f5125797..4eaeda5c26f63513c16a36a3ee5d678ba42a1a73 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
@@ -21,6 +21,7 @@ class NGBlockBreakToken;
class NGConstraintSpace;
class NGConstraintSpaceBuilder;
class NGInlineNode;
+class NGLayoutResult;
class NGPhysicalFragment;
// A class for general block layout (e.g. a <div> with no special style).
@@ -37,7 +38,7 @@ class CORE_EXPORT NGBlockLayoutAlgorithm : public NGLayoutAlgorithm {
NGBreakToken* break_token = nullptr);
Optional<MinAndMaxContentSizes> ComputeMinAndMaxContentSizes() const override;
- RefPtr<NGPhysicalFragment> Layout() override;
+ RefPtr<NGLayoutResult> Layout() override;
private:
NGBoxStrut CalculateMargins(const NGConstraintSpace& space,
@@ -45,7 +46,7 @@ class CORE_EXPORT NGBlockLayoutAlgorithm : public NGLayoutAlgorithm {
// Creates a new constraint space for the current child.
NGConstraintSpace* CreateConstraintSpaceForCurrentChild();
- void FinishCurrentChildLayout(RefPtr<NGPhysicalBoxFragment>);
+ void FinishCurrentChildLayout(RefPtr<NGLayoutResult>);
// Layout inline children.
void LayoutInlineChildren(NGInlineNode*);

Powered by Google App Engine
This is Rietveld 408576698