summaryrefslogtreecommitdiffstats
path: root/WebCore/page/DOMWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/page/DOMWindow.cpp')
-rw-r--r--WebCore/page/DOMWindow.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/WebCore/page/DOMWindow.cpp b/WebCore/page/DOMWindow.cpp
index d234973..f050a80 100644
--- a/WebCore/page/DOMWindow.cpp
+++ b/WebCore/page/DOMWindow.cpp
@@ -65,6 +65,7 @@
#include "NotificationCenter.h"
#include "Page.h"
#include "PageGroup.h"
+#include "Performance.h"
#include "PlatformScreen.h"
#include "PlatformString.h"
#include "Screen.h"
@@ -442,6 +443,12 @@ void DOMWindow::clear()
m_navigator->disconnectFrame();
m_navigator = 0;
+#if ENABLE(WEB_TIMING)
+ if (m_performance)
+ m_performance->disconnectFrame();
+ m_performance = 0;
+#endif
+
if (m_location)
m_location->disconnectFrame();
m_location = 0;
@@ -566,6 +573,15 @@ Navigator* DOMWindow::navigator() const
return m_navigator.get();
}
+#if ENABLE(WEB_TIMING)
+Performance* DOMWindow::webkitPerformance() const
+{
+ if (!m_performance)
+ m_performance = Performance::create(m_frame);
+ return m_performance.get();
+}
+#endif
+
Location* DOMWindow::location() const
{
if (!m_location)