Index: third_party/WebKit/Source/core/css/CSSValue.h |
diff --git a/third_party/WebKit/Source/core/css/CSSValue.h b/third_party/WebKit/Source/core/css/CSSValue.h |
index 69c3d0ac57366d6745d7c5416d0847d148fc85b9..69acb39d878260a50b980691d51a5ee73d59d6c4 100644 |
--- a/third_party/WebKit/Source/core/css/CSSValue.h |
+++ b/third_party/WebKit/Source/core/css/CSSValue.h |
@@ -44,7 +44,10 @@ public: |
static void* allocateObject(size_t size, bool isEager) |
{ |
ThreadState* state = ThreadStateFor<ThreadingTrait<CSSValue>::Affinity>::state(); |
- return Heap::allocateOnHeapIndex(state, size, isEager ? BlinkGC::EagerSweepHeapIndex : BlinkGC::CSSValueHeapIndex, GCInfoTrait<CSSValue>::index()); |
+ Address address = Heap::allocateOnHeapIndex(state, size, isEager ? BlinkGC::EagerSweepHeapIndex : BlinkGC::CSSValueHeapIndex, GCInfoTrait<CSSValue>::index()); |
+ const char* typeName = WTF_HEAP_PROFILER_TYPE_NAME(CSSValue); |
+ HeapAllocHooks::allocationHookIfEnabled(address, size, typeName); |
+ return address; |
} |
#else |
USING_FAST_MALLOC_WITH_TYPE_NAME(blink::CSSValue); |