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

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

Issue 2948743002: [LayoutNG] Let NGLineBreaker pass line box location to NGInlineLayoutAlgorithm (Closed)
Patch Set: ikilpatrick review Created 3 years, 6 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/inline/ng_inline_item_result.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.cc b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.cc
index 60c5bfbc5a44d175ea1fd90aa14daaed27e8a699..d0200c35fc1c69c34bbafab38e8fb11ba653cb32 100644
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.cc
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.cc
@@ -31,4 +31,12 @@ void NGLineInfo::SetLineStyle(const NGInlineNode& node, bool is_first_line) {
line_style_ = layout_object->Style();
}
+void NGLineInfo::SetLineLocation(LayoutUnit line_left,
+ LayoutUnit available_width,
+ LayoutUnit line_top) {
+ line_left_ = line_left;
+ available_width_ = available_width;
+ line_top_ = line_top;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698