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

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

Issue 2612103004: [ng_layout] Rename NGFragmentBase,NGFragment,NGPhysicalFragment (Closed)
Patch Set: CR: rename ifdef guards Created 3 years, 11 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_node.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_node.h b/third_party/WebKit/Source/core/layout/ng/ng_block_node.h
index 54dbe095167fd47607840a4f141425de1e38c5ae..d2b9a3835e0bbb53fab395731e5f97d1974099b0 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_node.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_node.h
@@ -15,10 +15,10 @@ class ComputedStyle;
class LayoutBox;
class LayoutObject;
class NGConstraintSpace;
-class NGFragmentBase;
+class NGFragment;
class NGLayoutAlgorithm;
class NGLayoutCoordinator;
-class NGPhysicalFragment;
+class NGPhysicalBoxFragment;
struct MinAndMaxContentSizes;
// Represents a node to be laid out.
@@ -33,7 +33,7 @@ class CORE_EXPORT NGBlockNode final : public NGLayoutInputNode {
~NGBlockNode() override;
- bool Layout(NGConstraintSpace*, NGFragmentBase**) override;
+ bool Layout(NGConstraintSpace*, NGFragment**) override;
NGBlockNode* NextSibling() override;
// Computes the value of min-content and max-content for this box.
@@ -59,13 +59,13 @@ class CORE_EXPORT NGBlockNode final : public NGLayoutInputNode {
// Runs layout on layout_box_ and creates a fragment for the resulting
// geometry.
- NGPhysicalFragment* RunOldLayout(const NGConstraintSpace&);
+ NGPhysicalBoxFragment* RunOldLayout(const NGConstraintSpace&);
// Called if this is an out-of-flow block which needs to be
// positioned with legacy layout.
void UseOldOutOfFlowPositioning();
- void UpdateLayoutBox(NGPhysicalFragment* fragment,
+ void UpdateLayoutBox(NGPhysicalBoxFragment* fragment,
const NGConstraintSpace* constraint_space);
private:
@@ -89,7 +89,7 @@ class CORE_EXPORT NGBlockNode final : public NGLayoutInputNode {
Member<NGLayoutInputNode> first_child_;
Member<NGLayoutCoordinator> layout_coordinator_;
Member<NGLayoutAlgorithm> minmax_algorithm_;
- Member<NGPhysicalFragment> fragment_;
+ Member<NGPhysicalBoxFragment> fragment_;
};
DEFINE_TYPE_CASTS(NGBlockNode,

Powered by Google App Engine
This is Rietveld 408576698