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_; |