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

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

Issue 2711803007: Add ClearanceOffset to LayoutNG Constraint space. (Closed)
Patch Set: update TestExpectations 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 9488259c6ab56c3646d63ac9595295708d09fa43..c9c5576a46ea6b9ceec9c8e685a069cd7e9faf8d 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
@@ -112,6 +112,10 @@ class CORE_EXPORT NGConstraintSpace final
NGLogicalOffset BfcOffset() const { return bfc_offset_; }
+ WTF::Optional<LayoutUnit> ClearanceOffset() const {
+ return clearance_offset_;
+ }
+
DEFINE_INLINE_VIRTUAL_TRACE() {}
String ToString() const;
@@ -134,7 +138,8 @@ class CORE_EXPORT NGConstraintSpace final
bool is_new_fc,
const NGMarginStrut& margin_strut,
const NGLogicalOffset& bfc_offset,
- const std::shared_ptr<NGExclusions>& exclusions);
+ const std::shared_ptr<NGExclusions>& exclusions,
+ const WTF::Optional<LayoutUnit>& clearance_offset);
NGPhysicalSize InitialContainingBlockSize() const {
return initial_containing_block_size_;
@@ -166,6 +171,7 @@ class CORE_EXPORT NGConstraintSpace final
NGMarginStrut margin_strut_;
NGLogicalOffset bfc_offset_;
const std::shared_ptr<NGExclusions> exclusions_;
+ WTF::Optional<LayoutUnit> clearance_offset_;
};
inline std::ostream& operator<<(std::ostream& stream,

Powered by Google App Engine
This is Rietveld 408576698