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

Unified Diff: Source/devtools/front_end/OverridesSupport.js

Issue 212103004: [DevTools] Show device screen size in DIPs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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: Source/devtools/front_end/OverridesSupport.js
diff --git a/Source/devtools/front_end/OverridesSupport.js b/Source/devtools/front_end/OverridesSupport.js
index 94d39bbf824b0e67102c702feed87c7f04328d9a..ba1013487847699266df5528f07077f7b5b9e841 100644
--- a/Source/devtools/front_end/OverridesSupport.js
+++ b/Source/devtools/front_end/OverridesSupport.js
@@ -461,8 +461,8 @@ WebInspector.OverridesSupport.prototype = {
if (!metrics.isValid())
return;
- var dipWidth = Math.round(metrics.width / metrics.deviceScaleFactor);
- var dipHeight = Math.round(metrics.height / metrics.deviceScaleFactor);
+ var dipWidth = Math.round(metrics.width);
+ var dipHeight = Math.round(metrics.height);
// Disable override without checks.
if (dipWidth && dipHeight && WebInspector.OverridesSupport.isInspectingDevice()) {
« no previous file with comments | « no previous file | Source/devtools/front_end/OverridesView.js » ('j') | Source/devtools/front_end/OverridesView.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698