Index: third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h b/third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h |
index 51c0c84c6fc8203e274de3fede90d1f1465662ac..86aff9f81f1fe0f97f7702f16c0ff6277953c932 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h |
@@ -6,6 +6,8 @@ |
#define NGLayoutAlgorithm_h |
#include "core/CoreExport.h" |
+#include "core/layout/ng/ng_constraint_space.h" |
+#include "core/layout/ng/ng_layout_input_node.h" |
#include "core/layout/ng/ng_min_max_content_size.h" |
#include "wtf/Allocator.h" |
#include "wtf/Optional.h" |
@@ -13,7 +15,7 @@ |
namespace blink { |
class ComputedStyle; |
-class NGConstraintSpace; |
+struct NGBoxStrut; |
class NGLayoutResult; |
// Base class for all LayoutNG algorithms. |
@@ -44,6 +46,9 @@ class CORE_EXPORT NGLayoutAlgorithm { |
} |
protected: |
+ static NGBoxStrut ComputeMarginsForChild(const NGConstraintSpace& space, |
+ NGLayoutInputNode* child); |
+ |
const NGConstraintSpace& ConstraintSpace() const { |
DCHECK(constraint_space_); |
return *constraint_space_; |