Index: Source/core/history/CachedFrame.cpp |
diff --git a/Source/core/history/CachedFrame.cpp b/Source/core/history/CachedFrame.cpp |
index bef5e07a7fed37c61b590b446b80a9836a0c6e66..7f933e0b5b499b477568adeccc95b31fda6fafc3 100644 |
--- a/Source/core/history/CachedFrame.cpp |
+++ b/Source/core/history/CachedFrame.cpp |
@@ -28,6 +28,8 @@ |
#include "AnimationController.h" |
#include "CachedFramePlatformData.h" |
+#include "Chrome.h" |
+#include "ChromeClient.h" |
#include "DOMWindow.h" |
#include "Document.h" |
#include "DocumentLoader.h" |
@@ -53,12 +55,6 @@ |
#include "SVGDocumentExtensions.h" |
#endif |
-#if ENABLE(TOUCH_EVENTS) |
-#include "Chrome.h" |
-#include "ChromeClient.h" |
-#endif |
- |
- |
namespace WebCore { |
#ifndef NDEBUG |
@@ -126,10 +122,8 @@ void CachedFrameBase::restore() |
HistoryItem* historyItem = frame->loader()->history()->currentItem(); |
m_document->enqueuePopstateEvent(historyItem && historyItem->stateObject() ? historyItem->stateObject() : SerializedScriptValue::nullValue()); |
-#if ENABLE(TOUCH_EVENTS) |
if (m_document->hasTouchEventHandlers()) |
m_document->page()->chrome()->client()->needTouchEvents(true); |
-#endif |
m_document->documentDidResumeFromPageCache(); |
} |