Index: Source/core/timing/MemoryInfo.h |
diff --git a/Source/core/timing/MemoryInfo.h b/Source/core/timing/MemoryInfo.h |
index 838ab157a46697c98953a1ee2b8f67a86be91984..78548527bd14a87feccd0a8bc6a868bd5be38d16 100644 |
--- a/Source/core/timing/MemoryInfo.h |
+++ b/Source/core/timing/MemoryInfo.h |
@@ -35,17 +35,15 @@ |
#include "bindings/core/v8/ScriptWrappable.h" |
#include "core/CoreExport.h" |
#include "platform/heap/Handle.h" |
-#include "wtf/PassRefPtr.h" |
-#include "wtf/RefCounted.h" |
namespace blink { |
-class CORE_EXPORT MemoryInfo final : public RefCountedWillBeGarbageCollected<MemoryInfo>, public ScriptWrappable { |
+class CORE_EXPORT MemoryInfo final : public GarbageCollected<MemoryInfo>, public ScriptWrappable { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- static PassRefPtrWillBeRawPtr<MemoryInfo> create() |
+ static MemoryInfo* create() |
{ |
- return adoptRefWillBeNoop(new MemoryInfo()); |
+ return new MemoryInfo(); |
} |
size_t totalJSHeapSize() const { return m_info.totalJSHeapSize; } |