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

Unified Diff: Source/core/timing/ConsoleMemory.h

Issue 1230203003: Don't cache MemoryInfo instance on ConsoleMemory object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update corresponding console.memory layout test Created 5 years, 5 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: Source/core/timing/ConsoleMemory.h
diff --git a/Source/core/timing/ConsoleMemory.h b/Source/core/timing/ConsoleMemory.h
index 0276bc70eaa780dcc2d38f70512b078ca41f4732..ad7c0dbadad1df730d5515a06be00645b67d34ef 100644
--- a/Source/core/timing/ConsoleMemory.h
+++ b/Source/core/timing/ConsoleMemory.h
@@ -19,13 +19,11 @@ public:
static MemoryInfo* memory(Console&);
static void setMemory(Console&, MemoryInfo*) { }
- DECLARE_VIRTUAL_TRACE();
+ DEFINE_INLINE_VIRTUAL_TRACE() { HeapSupplement<Console>::trace(visitor); }
private:
static const char* supplementName() { return "ConsoleMemory"; }
MemoryInfo* memory();
-
- Member<MemoryInfo> m_memory;
};
} // namespace blink
« no previous file with comments | « LayoutTests/inspector/console/console-memory-equals-console-memory-expected.txt ('k') | Source/core/timing/ConsoleMemory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698