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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/AwLegacyQuirksTest.java

Issue 2859313002: android: Fix display size under multiwindow (Closed)
Patch Set: Created 3 years, 7 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 | chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/javatests/src/org/chromium/android_webview/test/AwLegacyQuirksTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AwLegacyQuirksTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/AwLegacyQuirksTest.java
index 11325d0dd9e511679dca47122fc97831f5cea120..c07f9b5d3eba46d5ee4fab963cc29b7bf17e7546 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/AwLegacyQuirksTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/AwLegacyQuirksTest.java
@@ -138,13 +138,9 @@ public class AwLegacyQuirksTest extends AwTestBase {
DisplayAndroid displayAndroid = DisplayAndroid.getNonMultiDisplay(
getInstrumentation().getTargetContext());
float dipScale = displayAndroid.getDipScale();
- float physicalDisplayWidth = displayAndroid.getPhysicalDisplayWidth() != 0
- ? displayAndroid.getPhysicalDisplayWidth()
- : displayAndroid.getDisplayWidth();
+ float physicalDisplayWidth = displayAndroid.getDisplayWidth();
float cssDisplayWidth = physicalDisplayWidth / dipScale;
- float physicalDisplayHeight = displayAndroid.getPhysicalDisplayHeight() != 0
- ? displayAndroid.getPhysicalDisplayHeight()
- : displayAndroid.getDisplayHeight();
+ float physicalDisplayHeight = displayAndroid.getDisplayHeight();
float cssDisplayHeight = physicalDisplayHeight / dipScale;
float screenWidth = Integer.parseInt(
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698