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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js

Issue 1975563002: [DevTools] Move device outline out of experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@device-outline-fixes
Patch Set: Created 4 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 | third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
index 75433ac210abdd8641370e3df362e70d4a21e328..be1dca8dd9e8acef5678db8de0b605e0a8493064 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
@@ -235,7 +235,7 @@ WebInspector.DeviceModeModel.prototype = {
*/
outlineImage: function()
{
- return (this._device && this._mode && Runtime.experiments.isEnabled("deviceFrames") && this._deviceOutlineSetting.get()) ? this._device.outlineImage(this._mode) : "";
+ return (this._device && this._mode && this._deviceOutlineSetting.get()) ? this._device.outlineImage(this._mode) : "";
},
/**
@@ -432,7 +432,7 @@ WebInspector.DeviceModeModel.prototype = {
if (this._type !== WebInspector.DeviceModeModel.Type.Device)
return outline;
var orientation = this._device.orientationByName(this._mode.orientation);
- if (Runtime.experiments.isEnabled("deviceFrames") && this._deviceOutlineSetting.get())
+ if (this._deviceOutlineSetting.get())
outline = orientation.outlineInsets || outline;
return outline;
},
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698