Index: third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h |
similarity index 52% |
copy from third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h |
copy to third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h |
index f4c5796f7bf2c51ea7860b1aaafb625fdfd0b89d..7c1fa44e491b494afbff28c6cac27f1175962914 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h |
@@ -2,30 +2,30 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef NGPhysicalFragment_h |
-#define NGPhysicalFragment_h |
+#ifndef NGPhysicalBoxFragment_h |
+#define NGPhysicalBoxFragment_h |
#include "core/CoreExport.h" |
-#include "core/layout/ng/ng_physical_fragment_base.h" |
#include "core/layout/ng/ng_units.h" |
+#include "core/layout/ng/ng_physical_fragment.h" |
#include "platform/heap/Handle.h" |
namespace blink { |
class NGBlockNode; |
-class CORE_EXPORT NGPhysicalFragment final : public NGPhysicalFragmentBase { |
+class CORE_EXPORT NGPhysicalBoxFragment final : public NGPhysicalFragment { |
public: |
// This modifies the passed-in children vector. |
- NGPhysicalFragment( |
+ NGPhysicalBoxFragment( |
NGPhysicalSize size, |
NGPhysicalSize overflow, |
- HeapVector<Member<const NGPhysicalFragmentBase>>& children, |
+ HeapVector<Member<const NGPhysicalFragment>>& children, |
HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants, |
Vector<NGStaticPosition>& out_of_flow_positions, |
NGMarginStrut margin_strut); |
- const HeapVector<Member<const NGPhysicalFragmentBase>>& Children() const { |
+ const HeapVector<Member<const NGPhysicalFragment>>& Children() const { |
return children_; |
} |
@@ -34,18 +34,18 @@ class CORE_EXPORT NGPhysicalFragment final : public NGPhysicalFragmentBase { |
DECLARE_TRACE_AFTER_DISPATCH(); |
private: |
- HeapVector<Member<const NGPhysicalFragmentBase>> children_; |
+ HeapVector<Member<const NGPhysicalFragment>> children_; |
NGMarginStrut margin_strut_; |
}; |
-WILL_NOT_BE_EAGERLY_TRACED_CLASS(NGPhysicalFragment); |
+WILL_NOT_BE_EAGERLY_TRACED_CLASS(NGPhysicalBoxFragment); |
-DEFINE_TYPE_CASTS(NGPhysicalFragment, |
- NGPhysicalFragmentBase, |
+DEFINE_TYPE_CASTS(NGPhysicalBoxFragment, |
+ NGPhysicalFragment, |
fragment, |
- fragment->Type() == NGPhysicalFragmentBase::kFragmentBox, |
- fragment.Type() == NGPhysicalFragmentBase::kFragmentBox); |
+ fragment->Type() == NGPhysicalFragment::kFragmentBox, |
+ fragment.Type() == NGPhysicalFragment::kFragmentBox); |
} // namespace blink |
-#endif // NGPhysicalFragment_h |
+#endif // NGPhysicalBoxFragment_h |