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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 628763003: Support InputRouter recycling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 2 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: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index 65a6737db55bdb60af51d40d78d4765290907119..6875a6aeb02da194efd7ddf463d77cea027d384a 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -634,7 +634,6 @@ public class ContentViewCore
boolean isNavigationToDifferentPage, boolean isFragmentNavigation) {
if (!isNavigationToDifferentPage) return;
hidePopupsAndClearSelection();
- resetScrollInProgress();
resetGestureDetection();
}
@@ -1268,8 +1267,8 @@ public class ContentViewCore
}
private void resetGestureDetection() {
jdduke (slow) 2014/12/20 01:12:17 Should probably rename this to |resetInputStream()
- if (mNativeContentViewCore == 0) return;
- nativeResetGestureDetection(mNativeContentViewCore);
+ if (mNativeContentViewCore != 0) nativeResetGestureDetection(mNativeContentViewCore);
+ resetScrollInProgress();
}
/**

Powered by Google App Engine
This is Rietveld 408576698