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

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

Issue 2912273002: [LayoutNG] Logicalize NGPaintBorderEdge (Closed)
Patch Set: Rebase, Edge -> Edges Created 3 years, 7 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 baed4d6e70b4aed0a855943f61c291982db1628c..7ccd659ae435c66aec34bb0d2630a3de38c55d86 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,7 +23,8 @@ NGFragmentBuilder::NGFragmentBuilder(NGPhysicalFragment::NGFragmentType type,
direction_(TextDirection::kLtr),
node_(node),
layout_object_(node->GetLayoutObject()),
- did_break_(false) {}
+ did_break_(false),
+ border_edges_(NGBorderEdges::kAll) {}
NGFragmentBuilder::NGFragmentBuilder(NGPhysicalFragment::NGFragmentType type,
LayoutObject* layout_object)
@@ -228,6 +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)));
return AdoptRef(

Powered by Google App Engine
This is Rietveld 408576698