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

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

Issue 2521833002: [LayoutNG] Add out-of-flow descendants and offsets to NGPhysicalFragment (Closed)
Patch Set: Fix windows build Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_physical_fragment_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index e67874631162059d63fa68d355f712b96d599dd9..3518e585411fc5c4f44bddd5a91efc5a65b82d5d 100644
--- 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
@@ -16,4 +16,11 @@ DEFINE_TRACE(NGPhysicalFragmentBase) {
static_cast<NGPhysicalFragment*>(this)->traceAfterDispatch(visitor);
}
+void NGPhysicalFragmentBase::finalizeGarbageCollectedObject() {
+ if (Type() == FragmentText)
+ static_cast<NGPhysicalTextFragment*>(this)->~NGPhysicalTextFragment();
+ else
+ static_cast<NGPhysicalFragment*>(this)->~NGPhysicalFragment();
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_physical_fragment_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698