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

Unified Diff: Source/devtools/front_end/components/InspectorView.js

Issue 311193002: DevTools: Implement debugger pause-resume through an action (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
Index: Source/devtools/front_end/components/InspectorView.js
diff --git a/Source/devtools/front_end/components/InspectorView.js b/Source/devtools/front_end/components/InspectorView.js
index 2ad7eac3a47cad9482a8f34d46e48e414c637989..4b3ccabfa223378f64151c466046c7016b783b00 100644
--- a/Source/devtools/front_end/components/InspectorView.js
+++ b/Source/devtools/front_end/components/InspectorView.js
@@ -245,8 +245,11 @@ WebInspector.InspectorView.prototype = {
if (this._currentPanel === x)
return;
+ if (this._currentPanel)
+ WebInspector.context.setFlavor(this._currentPanel.constructor, null);
this._tabbedPane.changeTabView(x.name, x);
this._tabbedPane.selectTab(x.name);
+ WebInspector.context.setFlavor(x.constructor, x);
},
/**

Powered by Google App Engine
This is Rietveld 408576698