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

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

Issue 2446403004: NGPhysicalFragment implementation to cc file (Closed)
Patch Set: Created 4 years, 2 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_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_fragment.h
index 4a77cde1f6bd87f2bec3b4110d554cfe7ee4f49a..1c04df1ff0649381d03749ccf171d47703229492 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
@@ -9,7 +9,6 @@
#include "core/layout/ng/ng_physical_fragment_base.h"
#include "core/layout/ng/ng_units.h"
#include "platform/heap/Handle.h"
-#include "wtf/Vector.h"
namespace blink {
@@ -19,11 +18,7 @@ class CORE_EXPORT NGPhysicalFragment final : public NGPhysicalFragmentBase {
NGPhysicalFragment(NGPhysicalSize size,
NGPhysicalSize overflow,
HeapVector<Member<const NGPhysicalFragmentBase>>& children,
- NGMarginStrut margin_strut)
- : NGPhysicalFragmentBase(size, overflow, FragmentBox),
- margin_strut_(margin_strut) {
- children_.swap(children);
- }
+ NGMarginStrut margin_strut);
const HeapVector<Member<const NGPhysicalFragmentBase>>& Children() const {
return children_;
@@ -31,10 +26,7 @@ class CORE_EXPORT NGPhysicalFragment final : public NGPhysicalFragmentBase {
NGMarginStrut MarginStrut() const { return margin_strut_; }
- DEFINE_INLINE_TRACE_AFTER_DISPATCH() {
- visitor->trace(children_);
- NGPhysicalFragmentBase::traceAfterDispatch(visitor);
- }
+ DECLARE_TRACE_AFTER_DISPATCH();
private:
HeapVector<Member<const NGPhysicalFragmentBase>> children_;
« no previous file with comments | « third_party/WebKit/Source/core/layout/BUILD.gn ('k') | third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698