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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js

Issue 2319523004: DevTools: Remember the last focused widget. (Closed)
Patch Set: Created 4 years, 3 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: third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js
index ba20135d5767685b563dc6787213a96a2889d0c4..73a93ea2ba17c874e4473a01f1a936c5ff6e7e48 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js
@@ -75,8 +75,10 @@ WebInspector.ProfileView.ViewTypes = {
WebInspector.ProfileView.prototype = {
focus: function()
{
- if (this._flameChart)
+ if (this._flameChart) {
this._flameChart.focus();
+ this.wasFocused();
+ }
else
WebInspector.Widget.prototype.focus.call(this);
},

Powered by Google App Engine
This is Rietveld 408576698