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

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

Issue 2910133002: [LayoutNG] Handle empty inlines and border edges (Closed)
Patch Set: Rebase 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/ng_fragment_builder.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
index b4e2080d36d6537d2a73ad5565b2ed731f262725..69671099e203387c0a07d1a8d65bc441a7820691 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
@@ -23,8 +23,7 @@ NGFragmentBuilder::NGFragmentBuilder(NGPhysicalFragment::NGFragmentType type,
direction_(TextDirection::kLtr),
node_(node),
layout_object_(node.GetLayoutObject()),
- did_break_(false),
- border_edges_(NGBorderEdges::kAll) {}
+ did_break_(false) {}
NGFragmentBuilder::NGFragmentBuilder(NGPhysicalFragment::NGFragmentType type,
LayoutObject* layout_object)
@@ -230,8 +229,7 @@ RefPtr<NGLayoutResult> NGFragmentBuilder::ToBoxFragment() {
RefPtr<NGPhysicalBoxFragment> fragment = AdoptRef(new NGPhysicalBoxFragment(
layout_object_, physical_size, overflow_.ConvertToPhysical(writing_mode_),
children_, positioned_floats_, bfc_offset_, end_margin_strut_,
- NGBorderEdges::ToPhysical(border_edges_, writing_mode_),
- std::move(break_token)));
+ border_edges_.ToPhysical(writing_mode_), std::move(break_token)));
return AdoptRef(
new NGLayoutResult(std::move(fragment), out_of_flow_descendants_,

Powered by Google App Engine
This is Rietveld 408576698