| Index: Source/core/history/CachedFrame.cpp
|
| diff --git a/Source/core/history/CachedFrame.cpp b/Source/core/history/CachedFrame.cpp
|
| index 7f933e0b5b499b477568adeccc95b31fda6fafc3..bef5e07a7fed37c61b590b446b80a9836a0c6e66 100644
|
| --- a/Source/core/history/CachedFrame.cpp
|
| +++ b/Source/core/history/CachedFrame.cpp
|
| @@ -28,8 +28,6 @@
|
|
|
| #include "AnimationController.h"
|
| #include "CachedFramePlatformData.h"
|
| -#include "Chrome.h"
|
| -#include "ChromeClient.h"
|
| #include "DOMWindow.h"
|
| #include "Document.h"
|
| #include "DocumentLoader.h"
|
| @@ -55,6 +53,12 @@
|
| #include "SVGDocumentExtensions.h"
|
| #endif
|
|
|
| +#if ENABLE(TOUCH_EVENTS)
|
| +#include "Chrome.h"
|
| +#include "ChromeClient.h"
|
| +#endif
|
| +
|
| +
|
| namespace WebCore {
|
|
|
| #ifndef NDEBUG
|
| @@ -122,8 +126,10 @@ 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();
|
| }
|
|
|