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

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

Issue 231653003: Merge 262479 "[Android] Increase the mobile viewport epsilon thr..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1916/src/
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java
===================================================================
--- content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java (revision 262815)
+++ content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java (working copy)
@@ -15,8 +15,10 @@
public class RenderCoordinates {
// Used to accomodate finite precision when comparing scaled viewport and
- // content widths in {@link #hasMobileViewport()}.
- private static final float MOBILE_VIEWPORT_WIDTH_EPSILON = 0.005f;
+ // content widths in {@link #hasMobileViewport()}. While this value may
+ // seem large, width=device-width on an N7 V1 saw errors of ~0.065 between
+ // computed window and content widths.
+ private static final float MOBILE_VIEWPORT_WIDTH_EPSILON = 0.15f;
// Scroll offset from the native in CSS.
private float mScrollXCss;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698