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

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

Issue 2723023003: Revert of [LayoutNG] Move remaining ng_units structs to their own files (Closed)
Patch Set: 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_inline_node.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc b/third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc
index b1e55d95f58fd3bedc9bcfeaef5c805874f05d9f..7d5b148457f872d9dcc3b2376805b4e77ce8d841 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc
@@ -262,7 +262,7 @@
NGTextLayoutAlgorithm(this, constraint_space).LayoutInline(line_builder);
}
-MinMaxContentSize NGInlineNode::ComputeMinMaxContentSize() {
+MinAndMaxContentSizes NGInlineNode::ComputeMinAndMaxContentSizes() {
// Compute the max of inline sizes of all line boxes with 0 available inline
// size. This gives the min-content, the width where lines wrap at every break
// opportunity.
@@ -275,7 +275,7 @@
.ToConstraintSpace(writing_mode);
NGLineBuilder line_builder(this, constraint_space);
LayoutInline(constraint_space, &line_builder);
- MinMaxContentSize sizes;
+ MinAndMaxContentSizes sizes;
sizes.min_content = line_builder.MaxInlineSize();
// max-content is the width without any line wrapping.

Powered by Google App Engine
This is Rietveld 408576698