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

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

Issue 2714803002: [LayoutNG] Allow block-flow layout to be fragmented using new approach. (Closed)
Patch Set: rebase. 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_constraint_space.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
index c9c5576a46ea6b9ceec9c8e685a069cd7e9faf8d..9136e47128b923d8d99e8dffebf60fd544991969 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
@@ -67,6 +67,11 @@ class CORE_EXPORT NGConstraintSpace final
// Formatting Context.
bool IsNewFormattingContext() const { return is_new_fc_; }
+ // Whether the fragment produced from layout should be anonymous, (e.g. it
+ // may be a column in a multi-column layout). In such cases it shouldn't have
+ // any borders or padding.
+ bool IsAnonymous() const { return is_anonymous_; }
+
// Whether exceeding the AvailableSize() triggers the presence of a scrollbar
// for the indicated direction.
// If exceeded the current layout should be aborted and invoked again with a
@@ -136,6 +141,7 @@ class CORE_EXPORT NGConstraintSpace final
bool is_block_direction_triggers_scrollbar,
NGFragmentationType block_direction_fragmentation_type,
bool is_new_fc,
+ bool is_anonymous,
const NGMarginStrut& margin_strut,
const NGLogicalOffset& bfc_offset,
const std::shared_ptr<NGExclusions>& exclusions,
@@ -165,6 +171,8 @@ class CORE_EXPORT NGConstraintSpace final
// formatting Context
unsigned is_new_fc_ : 1;
+ unsigned is_anonymous_ : 1;
+
unsigned writing_mode_ : 3;
unsigned direction_ : 1;

Powered by Google App Engine
This is Rietveld 408576698