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

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

Issue 2692643002: Change how NGConstraintSpaceBuilder specified destination space. (Closed)
Patch Set: CR fixes, merge w master Created 3 years, 10 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_out_of_flow_layout_part.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part.cc b/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part.cc
index 85d2fe9f999dd0361d568190207eb9824e284c0c..125baf34a943015254cdcc2e589d74df82f75bf1 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part.cc
@@ -59,7 +59,7 @@ NGOutOfFlowLayoutPart::NGOutOfFlowLayoutPart(
space_builder.SetPercentageResolutionSize(space_size);
space_builder.SetIsNewFormattingContext(true);
space_builder.SetTextDirection(container_style_.direction());
- container_space_ = space_builder.ToConstraintSpace();
+ container_space_ = space_builder.ToConstraintSpace(writing_mode);
}
void NGOutOfFlowLayoutPart::Run() {
@@ -178,7 +178,8 @@ RefPtr<NGPhysicalFragment> NGOutOfFlowLayoutPart::GenerateFragment(
builder.SetIsFixedSizeBlock(true);
builder.SetIsFixedSizeInline(true);
builder.SetIsNewFormattingContext(true);
- NGConstraintSpace* space = builder.ToConstraintSpace();
+ NGConstraintSpace* space =
+ builder.ToConstraintSpace(container_space_->WritingMode());
return descendant.Layout(space);
}

Powered by Google App Engine
This is Rietveld 408576698