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

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

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change to height and ratio Created 4 years, 5 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/input/CursorAnchorInfoController.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/CursorAnchorInfoController.java b/content/public/android/java/src/org/chromium/content/browser/input/CursorAnchorInfoController.java
index 443e7d25a4c660083b3906c8b44f6f471bfc4050..8c19de3c324ee258d0ae50daf215d457de01e2a5 100644
--- a/content/public/android/java/src/org/chromium/content/browser/input/CursorAnchorInfoController.java
+++ b/content/public/android/java/src/org/chromium/content/browser/input/CursorAnchorInfoController.java
@@ -167,7 +167,7 @@ final class CursorAnchorInfoController {
// screen coordinate. Hence the following values are derived.
float scale = renderCoordinates.getDeviceScaleFactor();
float translationX = mViewOrigin[0];
- float translationY = mViewOrigin[1] + renderCoordinates.getContentOffsetYPix();
+ float translationY = mViewOrigin[1] + renderCoordinates.getTopControlsShownYPix();
if (!mHasCoordinateInfo
|| scale != mScale

Powered by Google App Engine
This is Rietveld 408576698