Index: components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ValidationMessageBubble.java |
diff --git a/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ValidationMessageBubble.java b/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ValidationMessageBubble.java |
index 3359280263cd8bc5cb5bf00ff62eb54d04966dcf..ac826984a4b4fbb43d03abc5b0452159f31351a0 100644 |
--- a/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ValidationMessageBubble.java |
+++ b/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ValidationMessageBubble.java |
@@ -103,7 +103,7 @@ class ValidationMessageBubble { |
private static float getWebViewOffsetYPixInScreen(ContentViewCore contentViewCore) { |
int[] location = new int[2]; |
contentViewCore.getContainerView().getLocationOnScreen(location); |
- return location[1] + contentViewCore.getRenderCoordinates().getContentOffsetYPix(); |
+ return location[1] + contentViewCore.getRenderCoordinates().getTopControlsShownYPix(); |
} |
private static void updateTextViews(ViewGroup root, String mainText, String subText) { |