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

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

Issue 2750213002: [LayoutNG] Don't pass parent NGFragmentBuilder into NGLineBuilder. (Closed)
Patch Set: rebase fix. Created 3 years, 9 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/ng_inline_node.h » ('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/ng_block_layout_algorithm.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
index a7b476f4d0a6aefdc1590f2e55431bb444b59835..69c81ee6fda034a746a568e4ba51daf1202ac772 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
@@ -458,14 +458,9 @@ RefPtr<NGLayoutResult> NGBlockLayoutAlgorithm::Layout() {
RefPtr<NGConstraintSpace> child_space =
CreateConstraintSpaceForChild(child);
+ RefPtr<NGLayoutResult> layout_result =
+ child->Layout(child_space.get(), child_break_token);
- RefPtr<NGLayoutResult> layout_result;
- if (child->Type() == NGLayoutInputNode::kLegacyInline) {
- layout_result = toNGInlineNode(child)->Layout(
- child_space.get(), &builder_, child_break_token);
- } else {
- layout_result = child->Layout(child_space.get(), child_break_token);
- }
FinishChildLayout(child, child_space.get(), layout_result);
entry = child_iterator.NextChild();
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_inline_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698