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

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

Issue 2721613003: [LayoutNG] Move remaining ng_units structs to their own files (Closed)
Patch Set: Don't export NGBoxStrut for now 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 7d5b148457f872d9dcc3b2376805b4e77ce8d841..b1e55d95f58fd3bedc9bcfeaef5c805874f05d9f 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 @@ void NGInlineNode::LayoutInline(NGConstraintSpace* constraint_space,
NGTextLayoutAlgorithm(this, constraint_space).LayoutInline(line_builder);
}
-MinAndMaxContentSizes NGInlineNode::ComputeMinAndMaxContentSizes() {
+MinMaxContentSize NGInlineNode::ComputeMinMaxContentSize() {
// 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 @@ MinAndMaxContentSizes NGInlineNode::ComputeMinAndMaxContentSizes() {
.ToConstraintSpace(writing_mode);
NGLineBuilder line_builder(this, constraint_space);
LayoutInline(constraint_space, &line_builder);
- MinAndMaxContentSizes sizes;
+ MinMaxContentSize 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