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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_fragment_base.cc

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_fragment_base.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment_base.cc b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment_base.cc
deleted file mode 100644
index ee6b7b76d730d55b0eff245c368fc75b1737a76d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment_base.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/layout/ng/ng_physical_fragment_base.h"
-
-#include "core/layout/ng/ng_break_token.h"
-#include "core/layout/ng/ng_physical_fragment.h"
-#include "core/layout/ng/ng_physical_text_fragment.h"
-
-namespace blink {
-
-NGPhysicalFragmentBase::NGPhysicalFragmentBase(
- NGPhysicalSize size,
- NGPhysicalSize overflow,
- NGFragmentType type,
- HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants,
- Vector<NGStaticPosition> out_of_flow_positions,
- NGBreakToken* break_token)
- : size_(size),
- overflow_(overflow),
- break_token_(break_token),
- type_(type),
- has_been_placed_(false) {
- out_of_flow_descendants_.swap(out_of_flow_descendants);
- out_of_flow_positions_.swap(out_of_flow_positions);
-}
-
-DEFINE_TRACE(NGPhysicalFragmentBase) {
- if (Type() == kFragmentText)
- static_cast<NGPhysicalTextFragment*>(this)->traceAfterDispatch(visitor);
- else
- static_cast<NGPhysicalFragment*>(this)->traceAfterDispatch(visitor);
-}
-
-void NGPhysicalFragmentBase::finalizeGarbageCollectedObject() {
- if (Type() == kFragmentText)
- static_cast<NGPhysicalTextFragment*>(this)->~NGPhysicalTextFragment();
- else
- static_cast<NGPhysicalFragment*>(this)->~NGPhysicalFragment();
-}
-
-DEFINE_TRACE_AFTER_DISPATCH(NGPhysicalFragmentBase) {
- visitor->trace(out_of_flow_descendants_);
- visitor->trace(break_token_);
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698