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

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

Issue 2692403003: [LayoutNG] Make NGBlockLayoutAlgorithm accept a NGBlockNode. (Closed)
Patch Set: comments! Created 3 years, 10 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 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_;

Powered by Google App Engine
This is Rietveld 408576698