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

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

Issue 2798203002: NGInlineLayoutAlgorithm should take margins of inline floats into account (Closed)
Patch Set: Created 3 years, 8 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_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_;

Powered by Google App Engine
This is Rietveld 408576698