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 5bffa4f0f5b99bb6dcf791bd159c3ce0821a4753..31926de878525c82b67899fc0df1e869dfabdf2c 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 |
@@ -13,13 +13,12 @@ |
namespace blink { |
-class NGInlineNode; |
class NGPhysicalBoxFragment; |
class NGPhysicalTextFragment; |
class CORE_EXPORT NGFragmentBuilder final { |
public: |
- NGFragmentBuilder(NGPhysicalFragment::NGFragmentType, LayoutObject*); |
+ NGFragmentBuilder(NGPhysicalFragment::NGFragmentType, NGLayoutInputNode*); |
using WeakBoxList = PersistentHeapLinkedHashSet<WeakMember<NGBlockNode>>; |
@@ -91,8 +90,7 @@ class CORE_EXPORT NGFragmentBuilder final { |
// Creates the fragment. Can only be called once. |
RefPtr<NGPhysicalBoxFragment> ToBoxFragment(); |
- RefPtr<NGPhysicalTextFragment> ToTextFragment(NGInlineNode*, |
- unsigned index, |
+ RefPtr<NGPhysicalTextFragment> ToTextFragment(unsigned index, |
unsigned start_offset, |
unsigned end_offset); |
@@ -133,7 +131,7 @@ class CORE_EXPORT NGFragmentBuilder final { |
NGWritingMode writing_mode_; |
TextDirection direction_; |
- LayoutObject* layout_object_; |
+ Persistent<NGLayoutInputNode> node_; |
NGLogicalSize size_; |
NGLogicalSize overflow_; |