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

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

Issue 2632523002: [LayoutNG] Initial support for multicol, introducing NGBlockBreakToken. (Closed)
Patch Set: Add TODO. 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_constraint_space_builder.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h
index 4ba9e69637002e04c1af9ffe57a11dcf951b5df8..5bbcbf7149f8e79ea569002429a5bb8e3dd3d341 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h
@@ -22,6 +22,11 @@ class CORE_EXPORT NGConstraintSpaceBuilder final
NGConstraintSpaceBuilder& SetPercentageResolutionSize(
NGLogicalSize percentage_resolution_size);
+ NGConstraintSpaceBuilder& SetFragmentainerSpaceAvailable(LayoutUnit space) {
+ fragmentainer_space_available_ = space;
+ return *this;
+ }
+
NGConstraintSpaceBuilder& SetTextDirection(TextDirection);
NGConstraintSpaceBuilder& SetIsFixedSizeInline(bool is_fixed_size_inline);
@@ -52,6 +57,7 @@ class CORE_EXPORT NGConstraintSpaceBuilder final
private:
NGLogicalSize available_size_;
NGLogicalSize percentage_resolution_size_;
+ LayoutUnit fragmentainer_space_available_;
unsigned writing_mode_ : 2;
unsigned parent_writing_mode_ : 2;

Powered by Google App Engine
This is Rietveld 408576698