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

Unified Diff: Source/devtools/front_end/emulation/ResponsiveDesignView.js

Issue 1202493002: [DevTools] Refactor emulated devices modes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « Source/devtools/front_end/emulation/EmulatedDevices.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/emulation/ResponsiveDesignView.js
diff --git a/Source/devtools/front_end/emulation/ResponsiveDesignView.js b/Source/devtools/front_end/emulation/ResponsiveDesignView.js
index cb2f06beb60e676720cf5fbb454bc3f2c39ea46d..8ae124ee35bf12f112ce6b077640140678d78d9f 100644
--- a/Source/devtools/front_end/emulation/ResponsiveDesignView.js
+++ b/Source/devtools/front_end/emulation/ResponsiveDesignView.js
@@ -734,7 +734,7 @@ WebInspector.ResponsiveDesignView.prototype = {
{
if (device && mode) {
var orientation = device.orientationByName(mode.orientation);
- this._deviceInsets = new Insets(mode.pageRect.left, mode.pageRect.top, orientation.width - mode.pageRect.left - mode.pageRect.width, orientation.height - mode.pageRect.top - mode.pageRect.height);
+ this._deviceInsets = mode.insets;
} else {
this._deviceInsets = new Insets(0, 0, 0, 0);
}
« no previous file with comments | « Source/devtools/front_end/emulation/EmulatedDevices.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698