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 9488259c6ab56c3646d63ac9595295708d09fa43..b7aaf38977343d5f844a29a528f61f8bdb7c9c00 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 |
@@ -132,6 +137,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); |
@@ -159,6 +165,7 @@ class CORE_EXPORT NGConstraintSpace final |
// Whether the current constraint space is for the newly established |
// formatting Context |
unsigned is_new_fc_ : 1; |
+ unsigned is_anonymous_ : 1; |
mstensho (USE GERRIT)
2017/02/27 13:44:36
Should probably add a blank line above this, since
ikilpatrick
2017/02/27 18:50:09
Done.
|
unsigned writing_mode_ : 3; |
unsigned direction_ : 1; |