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

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

Issue 2562703003: Make AlgorithmForInputNode use original constraint space (Closed)
Patch Set: Make AlgorithmForInputNode use container constraint space Created 4 years 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_block_node.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc
index 38a1351a5ee154440a76b13e82dce86088b57106..b097278f99b5d2056f28decac13881bb4ccb9afe 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc
@@ -39,7 +39,7 @@ NGBlockNode::NGBlockNode(ComputedStyle* style)
// included from a compilation unit that lacks the ComputedStyle definition.
NGBlockNode::~NGBlockNode() {}
-bool NGBlockNode::Layout(const NGConstraintSpace* constraint_space,
+bool NGBlockNode::Layout(NGConstraintSpace* constraint_space,
NGFragmentBase** out) {
DCHECK(!minmax_algorithm_)
<< "Can't interleave Layout and ComputeMinAndMaxContentSizes";
@@ -66,8 +66,8 @@ bool NGBlockNode::Layout(const NGConstraintSpace* constraint_space,
DCHECK(layout_box_);
fragment_ = RunOldLayout(*constraint_space);
}
- *out = new NGFragment(constraint_space->WritingMode(), Style()->direction(),
- fragment_.get());
+ *out = new NGFragment(FromPlatformWritingMode(Style()->getWritingMode()),
+ Style()->direction(), fragment_.get());
// Reset coordinator for future use
layout_coordinator_ = nullptr;
return true;
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_block_node.h ('k') | third_party/WebKit/Source/core/layout/ng/ng_inline_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698