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

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

Issue 2702403003: [layoutng] Split NGLayoutResult out of NGPhysicalFragment (Closed)
Patch Set: rebased 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 31926de878525c82b67899fc0df1e869dfabdf2c..7e9338c0661019446a9730c120e9c23869808a54 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,7 +13,7 @@
namespace blink {
-class NGPhysicalBoxFragment;
+class NGLayoutResult;
class NGPhysicalTextFragment;
class CORE_EXPORT NGFragmentBuilder final {
@@ -32,6 +32,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*,
@@ -89,7 +90,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(unsigned index,
unsigned start_offset,
unsigned end_offset);

Powered by Google App Engine
This is Rietveld 408576698