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 026f9b45308f48da1e0c1f50d99e942cc844f698..739a66ab7a2fb0074f31d921dd8aa60857e11c7b 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 |
@@ -1496,7 +1496,14 @@ public class ContentViewCore |
private void onRenderCoordinatesUpdated() { |
if (mContentViewGestureHandler == null) return; |
- mContentViewGestureHandler.updateHasFixedPageScale(mRenderCoordinates.hasFixedPageScale()); |
+ |
+ // We disable double tap zoom for pages that have a width=device-width |
+ // or narrower viewport (indicating that this is a mobile-optimized or |
+ // responsive web design, so text will be legible without zooming). |
+ // We also disable it for pages that disallow the user from zooming in |
+ // or out (even if they don't have a device-width or narrower viewport). |
+ mContentViewGestureHandler.updateShouldDisableDoubleTap( |
+ mRenderCoordinates.hasMobileViewport() || mRenderCoordinates.hasFixedPageScale()); |
} |
private void hidePopupDialog() { |