summaryrefslogtreecommitdiffstats
path: root/WebCore/history
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/history')
-rw-r--r--WebCore/history/CachedFrame.cpp2
-rw-r--r--WebCore/history/PageCache.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/history/CachedFrame.cpp b/WebCore/history/CachedFrame.cpp
index f0a4fed..470e03f 100644
--- a/WebCore/history/CachedFrame.cpp
+++ b/WebCore/history/CachedFrame.cpp
@@ -128,7 +128,7 @@ CachedFrame::CachedFrame(Frame* frame)
ASSERT(m_view);
// Active DOM objects must be suspended before we cached the frame script data
- m_document->suspendActiveDOMObjects();
+ m_document->suspendActiveDOMObjects(ActiveDOMObject::DocumentWillBecomeInactive);
m_cachedFrameScriptData = adoptPtr(new ScriptCachedFrameData(frame));
// Custom scrollbar renderers will get reattached when the document comes out of the page cache
diff --git a/WebCore/history/PageCache.cpp b/WebCore/history/PageCache.cpp
index 228f7ea..a5b29ce 100644
--- a/WebCore/history/PageCache.cpp
+++ b/WebCore/history/PageCache.cpp
@@ -44,6 +44,7 @@
#include "SharedWorkerRepository.h"
#include "SystemTime.h"
#include <wtf/CurrentTime.h>
+#include <wtf/text/CString.h>
using namespace std;