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

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

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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.cc » ('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/inline/ng_inline_item_result.h
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.h b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.h
index 1533e161bc8e2e377568ca2fb990935d961bc2af..66cbaae61247939b1e11757580df5a3c2b4c5945 100644
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.h
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.h
@@ -98,9 +98,19 @@ class CORE_EXPORT NGLineInfo {
NGInlineItemResults& Results() { return results_; }
const NGInlineItemResults& Results() const { return results_; }
+ LayoutUnit LineLeft() const { return line_left_; }
+ LayoutUnit AvailableWidth() const { return available_width_; }
+ LayoutUnit LineTop() const { return line_top_; }
+ void SetLineLocation(LayoutUnit line_left,
+ LayoutUnit available_width,
+ LayoutUnit line_top);
+
private:
const ComputedStyle* line_style_ = nullptr;
NGInlineItemResults results_;
+ LayoutUnit line_left_;
+ LayoutUnit available_width_;
+ LayoutUnit line_top_;
bool is_first_line_ = false;
bool is_last_line_ = false;
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698