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

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

Issue 2702403003: [layoutng] Split NGLayoutResult out of NGPhysicalFragment (Closed)
Patch Set: 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..0242e35519f5dd575d990349e18c571b50f8f95d 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
@@ -14,7 +14,7 @@
namespace blink {
class NGInlineNode;
-class NGPhysicalBoxFragment;
+class NGLayoutResult;
class NGPhysicalTextFragment;
class CORE_EXPORT NGFragmentBuilder final {
@@ -33,6 +33,7 @@ class CORE_EXPORT NGFragmentBuilder final {
NGFragmentBuilder& SetInlineOverflow(LayoutUnit);
NGFragmentBuilder& SetBlockOverflow(LayoutUnit);
+ NGFragmentBuilder& AddChild(RefPtr<NGLayoutResult>, const NGLogicalOffset&);
NGFragmentBuilder& AddChild(RefPtr<NGPhysicalFragment>,
const NGLogicalOffset&);
NGFragmentBuilder& AddFloatingObject(NGFloatingObject*,
@@ -90,7 +91,7 @@ class CORE_EXPORT NGFragmentBuilder final {
// do not provide a setter here.
// Creates the fragment. Can only be called once.
- RefPtr<NGPhysicalBoxFragment> ToBoxFragment();
+ RefPtr<NGLayoutResult> ToBoxFragment();
RefPtr<NGPhysicalTextFragment> ToTextFragment(NGInlineNode*,
unsigned index,
unsigned start_offset,

Powered by Google App Engine
This is Rietveld 408576698