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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.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_physical_constraint_space.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h
index 5b22d50a8a88b7f496778c43b843193f78e52935..a7bc05c1493779a096f6e1a60e977eb545dd21ce 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h
@@ -34,7 +34,8 @@ class CORE_EXPORT NGPhysicalConstraintSpace final
: public GarbageCollectedFinalized<NGPhysicalConstraintSpace> {
public:
NGPhysicalConstraintSpace(
- NGPhysicalSize container_size,
+ NGPhysicalSize available_size,
+ NGPhysicalSize percentage_resolution_size,
bool fixed_width,
bool fixed_height,
bool width_direction_triggers_scrollbar,
@@ -43,8 +44,6 @@ class CORE_EXPORT NGPhysicalConstraintSpace final
NGFragmentationType height_direction_fragmentation_type,
bool is_new_fc);
- NGPhysicalSize ContainerSize() const { return container_size_; }
-
void AddExclusion(const NGLogicalRect&, unsigned options = 0);
const Vector<std::unique_ptr<const NGLogicalRect>>& Exclusions(
unsigned options = 0) const;
@@ -54,7 +53,8 @@ class CORE_EXPORT NGPhysicalConstraintSpace final
private:
friend class NGConstraintSpace;
- NGPhysicalSize container_size_;
+ NGPhysicalSize available_size_;
+ NGPhysicalSize percentage_resolution_size_;
unsigned fixed_width_ : 1;
unsigned fixed_height_ : 1;

Powered by Google App Engine
This is Rietveld 408576698