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

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

Issue 2266313002: [layoutng] Create a more correct constraint space for children (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 4 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.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc
index 1d024121b113a8a88dccf5697012c69c0bb4f095..f779374330cb556453abff10dbd803a747179ea3 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc
@@ -18,6 +18,12 @@ NGConstraintSpace::NGConstraintSpace(NGLogicalSize container_size) {
block_fragmentation_type_ = FragmentNone;
}
+NGConstraintSpace::NGConstraintSpace(const NGConstraintSpace& other,
+ NGLogicalSize container_size)
+ : NGConstraintSpace(container_size) {
+ exclusions_ = other.exclusions_;
+}
+
NGConstraintSpace NGConstraintSpace::fromLayoutObject(const LayoutBox& child) {
bool fixedInline = false, fixedBlock = false;
// XXX for orthogonal writing mode this is not right

Powered by Google App Engine
This is Rietveld 408576698