summaryrefslogtreecommitdiffstats
path: root/WebCore/page/Performance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/page/Performance.cpp')
-rw-r--r--WebCore/page/Performance.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/WebCore/page/Performance.cpp b/WebCore/page/Performance.cpp
index c19ce8f..c4234a7 100644
--- a/WebCore/page/Performance.cpp
+++ b/WebCore/page/Performance.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "Performance.h"
+#include "MemoryInfo.h"
#include "Navigation.h"
#include "Timing.h"
@@ -52,6 +53,8 @@ Frame* Performance::frame() const
void Performance::disconnectFrame()
{
+ if (m_memory)
+ m_memory = 0;
if (m_navigation) {
m_navigation->disconnectFrame();
m_navigation = 0;
@@ -63,6 +66,12 @@ void Performance::disconnectFrame()
m_frame = 0;
}
+MemoryInfo* Performance::memory() const
+{
+ m_memory = MemoryInfo::create(m_frame);
+ return m_memory.get();
+}
+
Navigation* Performance::navigation() const
{
if (!m_navigation)