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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc

Issue 2470733002: Revert of [LayoutNG] Remove simple constructors from NGPhysicalConstraintSpace. (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc b/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc
index 567ed676320a6625e8cac1805e738dbce33c5f8c..867519f34c581e4ff7ea4d798886cd2ede848eaa 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc
@@ -24,6 +24,24 @@
height_direction_fragmentation_type_(height_direction_fragmentation_type),
is_new_fc_(is_new_fc) {}
+NGPhysicalConstraintSpace::NGPhysicalConstraintSpace(
+ NGPhysicalSize container_size)
+ : container_size_(container_size),
+ fixed_width_(0),
+ fixed_height_(0),
+ width_direction_triggers_scrollbar_(0),
+ height_direction_triggers_scrollbar_(0),
+ width_direction_fragmentation_type_(FragmentNone),
+ height_direction_fragmentation_type_(FragmentNone) {}
+
+NGPhysicalConstraintSpace::NGPhysicalConstraintSpace()
+ : fixed_width_(0),
+ fixed_height_(0),
+ width_direction_triggers_scrollbar_(0),
+ height_direction_triggers_scrollbar_(0),
+ width_direction_fragmentation_type_(FragmentNone),
+ height_direction_fragmentation_type_(FragmentNone) {}
+
void NGPhysicalConstraintSpace::AddExclusion(const NGExclusion* exclusion,
unsigned options) {
exclusions_.append(exclusion);
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698