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 93e74bca72eae77901608c0374a964572c223d0e..a6251b81dadae71c33a04dd053e8784dd4a1a72e 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 |
@@ -539,7 +539,7 @@ public class ContentViewCore |
View view, float x, float y, float width, float height) { |
assert view.getParent() == mContainerView; |
- float scale = (float) DeviceDisplayInfo.create(getContext()).getDIPScale(); |
+ float scale = (float) DeviceDisplayInfo.getInstance(getContext()).getDIPScale(); |
// The anchor view should not go outside the bounds of the ContainerView. |
int leftMargin = Math.round(x * scale); |