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

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

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.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h
index 24f44a38bec43c012646a3ee0f6e4fcd67af7135..35882cb020ff830f29e015b76eaca901e8648636 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h
@@ -129,6 +129,11 @@ class CORE_EXPORT NGFragmentBuilder final {
bool DidBreak() const { return did_break_; }
+ NGFragmentBuilder& SetBorderEdges(NGBorderEdges::Logical border_edges) {
+ border_edges_ = border_edges;
+ return *this;
+ }
+
private:
// Out-of-flow descendant placement information.
// The generated fragment must compute NGStaticPosition for all
@@ -181,6 +186,8 @@ class CORE_EXPORT NGFragmentBuilder final {
WTF::Optional<NGLogicalOffset> bfc_offset_;
NGMarginStrut end_margin_strut_;
+
+ NGBorderEdges::Logical border_edges_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698