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

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

Issue 2898413002: [LayoutNG] Add box fragments to line boxes when needed (Closed)
Patch Set: x64 build fix 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 d10584c426d955ddf766a2d0d2a6d15801345068..24f44a38bec43c012646a3ee0f6e4fcd67af7135 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
@@ -24,6 +24,10 @@ class CORE_EXPORT NGFragmentBuilder final {
public:
NGFragmentBuilder(NGPhysicalFragment::NGFragmentType, NGLayoutInputNode*);
+ // Build a fragment for LayoutObject without NGLayoutInputNode. LayoutInline
+ // has NGInlineItem but does not have corresponding NGLayoutInputNode.
+ NGFragmentBuilder(NGPhysicalFragment::NGFragmentType, LayoutObject*);
+
using WeakBoxList = PersistentHeapLinkedHashSet<WeakMember<NGBlockNode>>;
NGFragmentBuilder& SetWritingMode(NGWritingMode);
@@ -149,6 +153,7 @@ class CORE_EXPORT NGFragmentBuilder final {
TextDirection direction_;
Persistent<NGLayoutInputNode> node_;
+ LayoutObject* layout_object_;
NGLogicalSize size_;
NGLogicalSize overflow_;

Powered by Google App Engine
This is Rietveld 408576698