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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_fragment.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.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc b/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc
index b1f8d45c4c5f533aa58010c4cefa2702f779ba96..7bbdf34741a742d93129fe886c0f4ebb276e3cca 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc
@@ -41,6 +41,11 @@ NGLogicalOffset NGFragment::Offset() const {
return NGLogicalOffset(InlineOffset(), BlockOffset());
}
+NGBorderEdges::Logical NGFragment::BorderEdges() const {
+ return NGBorderEdges::ToLogical(physical_fragment_->BorderEdges(),
+ WritingMode());
+}
+
NGPhysicalFragment::NGFragmentType NGFragment::Type() const {
return physical_fragment_->Type();
}

Powered by Google App Engine
This is Rietveld 408576698