Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: Source/WebCore/history/CachedFrame.cpp

Issue 14296003: Remove TOUCH_EVENTS and TOUCH_EVENT_TRACKING compile-time flags. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/history/CachedFrame.cpp
diff --git a/Source/WebCore/history/CachedFrame.cpp b/Source/WebCore/history/CachedFrame.cpp
index 86ba2ac77d9f1820893059b79a644be1c8e4eb4e..78b89693effc78b6766b27c3ec62bc03aedc2d7a 100644
--- a/Source/WebCore/history/CachedFrame.cpp
+++ b/Source/WebCore/history/CachedFrame.cpp
@@ -27,6 +27,8 @@
#include "CachedPage.h"
#include "CachedFramePlatformData.h"
+#include "Chrome.h"
+#include "ChromeClient.h"
#include "DOMWindow.h"
#include "Document.h"
#include "DocumentLoader.h"
@@ -50,12 +52,6 @@
#include "SVGDocumentExtensions.h"
#endif
-#if ENABLE(TOUCH_EVENTS)
-#include "Chrome.h"
-#include "ChromeClient.h"
-#endif
-
-
namespace WebCore {
#ifndef NDEBUG
@@ -123,10 +119,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();
}

Powered by Google App Engine
This is Rietveld 408576698