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

Issue 224723019: [Android] Use latest page scale factor when computing content width (Closed)

Created:
6 years, 8 months ago by jdduke (slow)
Modified:
6 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, Rick Byers
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Android] Use latest page scale factor when computing content width Previously, ContentViewCore clamped the effective content bounds from the compositor frame metadata using the *previous* frame's page scale factor. Instead, clamp the content bounds using the *current* frame's page scale factor, and make the content viewport comparison more robust. This fixes an issue where the content size after page load was being improperly calculated, preventing mobile sites (e.g., width=device-width) from benefiting from the disabled tap delay. BUG=360602 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262312

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use epsilon #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -6 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 2 chunks +3 lines, -4 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java View 1 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jdduke (slow)
johnme@: PTAL. This resolves the initial double-tap issue we were seeing, although I haven't been ...
6 years, 8 months ago (2014-04-07 16:42:51 UTC) #1
jdduke (slow)
aelias@: PTAL, looks like I missed johnme@.
6 years, 8 months ago (2014-04-07 20:32:51 UTC) #2
aelias_OOO_until_Jul13
https://codereview.chromium.org/224723019/diff/1/content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java File content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java (right): https://codereview.chromium.org/224723019/diff/1/content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java#newcode278 content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java:278: return Math.floor(mContentWidthCss) <= Math.ceil(windowWidthDip); This seems to be adding ...
6 years, 8 months ago (2014-04-07 21:52:57 UTC) #3
jdduke (slow)
https://codereview.chromium.org/224723019/diff/1/content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java File content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java (right): https://codereview.chromium.org/224723019/diff/1/content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java#newcode278 content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java:278: return Math.floor(mContentWidthCss) <= Math.ceil(windowWidthDip); On 2014/04/07 21:52:57, aelias wrote: ...
6 years, 8 months ago (2014-04-07 21:56:09 UTC) #4
aelias_OOO_until_Jul13
Please switch to an epsilon then, I prefer for the code to be explicit about ...
6 years, 8 months ago (2014-04-07 22:00:41 UTC) #5
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-07 22:51:33 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/224723019/2
6 years, 8 months ago (2014-04-07 22:54:42 UTC) #7
commit-bot: I haz the power
6 years, 8 months ago (2014-04-08 04:49:51 UTC) #8
Message was sent while issue was closed.
Change committed as 262312

Powered by Google App Engine
This is Rietveld 408576698