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

Unified Diff: Source/platform/heap/Heap.h

Issue 227083006: [Oilpan]: Moving the FontSelector/FontCacheClient, CSSSegmentedFontFace, and FontFaceCache to the o… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 8 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
« no previous file with comments | « Source/platform/fonts/FontFallbackList.cpp ('k') | Source/platform/heap/Visitor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Heap.h
diff --git a/Source/platform/heap/Heap.h b/Source/platform/heap/Heap.h
index 750eb3058acfacdaa6ec4fdd67ddc2bb6649ca14..7dc1767cf91c1fd7db2a9e177973972c5b56cc0f 100644
--- a/Source/platform/heap/Heap.h
+++ b/Source/platform/heap/Heap.h
@@ -883,7 +883,18 @@ class GarbageCollected {
// For now direct allocation of arrays on the heap is not allowed.
void* operator new[](size_t size);
+#if OS(WIN) && COMPILER(MSVC)
+ // Due to some quirkiness in the MSVC compiler we have to provide
+ // the delete[] operator in the GarbageCollected subclasses as it
+ // is called when a class is exported in a DLL.
+protected:
+ void operator delete[](void* p)
+ {
+ ASSERT_NOT_REACHED();
+ }
+#else
void operator delete[](void* p);
+#endif
public:
typedef T GarbageCollectedBase;
« no previous file with comments | « Source/platform/fonts/FontFallbackList.cpp ('k') | Source/platform/heap/Visitor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698