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

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

Issue 2612103004: [ng_layout] Rename NGFragmentBase,NGFragment,NGPhysicalFragment (Closed)
Patch Set: CR: rename ifdef guards Created 3 years, 11 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_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

Powered by Google App Engine
This is Rietveld 408576698