Index: third_party/WebKit/Source/core/layout/ng/ng_box.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_box.cc b/third_party/WebKit/Source/core/layout/ng/ng_box.cc |
index cf75f73f7fc365a98bbef36a123ce01eb34e7db1..8fe304a5ad05878ebc01b75b3f24ab52320d11bc 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_box.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_box.cc |
@@ -38,7 +38,8 @@ bool NGBox::Layout(const NGConstraintSpace* constraint_space, |
// Change the coordinate system of the constraint space. |
NGConstraintSpace* child_constraint_space = new NGConstraintSpace( |
FromPlatformWritingMode(Style()->getWritingMode()), |
- FromPlatformDirection(Style()->direction()), constraint_space); |
+ FromPlatformDirection(Style()->direction()), |
+ constraint_space->MutablePhysicalSpace()); |
NGPhysicalFragment* fragment = nullptr; |
if (!algorithm_->Layout(child_constraint_space, &fragment)) |