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

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

Issue 2656693007: [LayoutNG] Return MinAndMaxContentSizes by value, step 1 (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_block_node.h » ('j') | 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_block_layout_algorithm.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
index aadb712141713604efc3afe663f15fa8be4ff074..cfbeae94cffe846d35f55b189e36f21ecacd8be2 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
@@ -208,7 +208,7 @@ bool NGBlockLayoutAlgorithm::ComputeMinAndMaxContentSizes(
for (NGBlockNode* node = first_child_; node; node = node->NextSibling()) {
Optional<MinAndMaxContentSizes> child_minmax;
if (NeedMinAndMaxContentSizesForContentContribution(*node->Style())) {
- child_minmax = node->ComputeMinAndMaxContentSizesSync();
+ child_minmax = node->ComputeMinAndMaxContentSizes();
}
MinAndMaxContentSizes child_sizes =
@@ -614,7 +614,7 @@ NGBoxStrut NGBlockLayoutAlgorithm::CalculateMargins(
if (NeedMinAndMaxContentSizes(space, style)) {
// TODO(ikilpatrick): Change ComputeMinAndMaxContentSizes to return
// MinAndMaxContentSizes.
- sizes = current_child_->ComputeMinAndMaxContentSizesSync();
+ sizes = current_child_->ComputeMinAndMaxContentSizes();
}
LayoutUnit child_inline_size =
ComputeInlineSizeForFragment(space, style, sizes);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_block_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698