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

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

Issue 2483683003: [LayoutNG] Split apart storage for AvailableSize and PercentageSize. (Closed)
Patch Set: rebase. Created 4 years, 1 month 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 db9a641c820f6dafe1d5f46feb98db8178254151..3f37ac8084116fff36dfa3894c9ae1bf3f284902 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
@@ -15,7 +15,10 @@ class CORE_EXPORT NGConstraintSpaceBuilder final
public:
NGConstraintSpaceBuilder(NGWritingMode writing_mode);
- NGConstraintSpaceBuilder& SetContainerSize(NGLogicalSize container_size);
+ NGConstraintSpaceBuilder& SetAvailableSize(NGLogicalSize available_size);
+
+ NGConstraintSpaceBuilder& SetPercentageResolutionSize(
+ NGLogicalSize percentage_resolution_size);
NGConstraintSpaceBuilder& SetIsFixedSizeInline(bool is_fixed_size_inline);
NGConstraintSpaceBuilder& SetIsFixedSizeBlock(bool is_fixed_size_block);
@@ -39,7 +42,8 @@ class CORE_EXPORT NGConstraintSpaceBuilder final
DEFINE_INLINE_TRACE() {}
private:
- NGLogicalSize container_size_;
+ NGLogicalSize available_size_;
+ NGLogicalSize percentage_resolution_size_;
// const bit fields.
const unsigned writing_mode_ : 2;

Powered by Google App Engine
This is Rietveld 408576698