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

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

Issue 2692403003: [LayoutNG] Make NGBlockLayoutAlgorithm accept a NGBlockNode. (Closed)
Patch Set: comments! 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_line_builder.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc b/third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc
index d59bbb28c41c9dda4cb6a73de8f93fda92b85aa8..82c705714f40d2614d61e8ae57b37f062257e439 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc
@@ -131,7 +131,7 @@ void NGLineBuilder::CreateLineUpToLastBreakOpportunity() {
BidiReorder(&line_item_chunks);
NGFragmentBuilder text_builder(NGPhysicalFragment::kFragmentText,
- inline_box_->GetLayoutObject());
+ inline_box_);
text_builder.SetWritingMode(constraint_space_->WritingMode());
LayoutUnit inline_offset;
for (const auto& line_item_chunk : line_item_chunks) {
@@ -154,7 +154,7 @@ void NGLineBuilder::CreateLineUpToLastBreakOpportunity() {
TextDirection css_direction = style->direction();
text_builder.SetDirection(css_direction);
RefPtr<NGPhysicalTextFragment> text_fragment = text_builder.ToTextFragment(
- inline_box_, line_item_chunk.index, line_item_chunk.start_offset,
+ line_item_chunk.index, line_item_chunk.start_offset,
line_item_chunk.end_offset);
fragments_.push_back(std::move(text_fragment));

Powered by Google App Engine
This is Rietveld 408576698