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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js

Issue 2377193004: [DevTools] Rework some focus code. (Closed)
Patch Set: FocusRestorer 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/ui/TabbedPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js b/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
index ab911b254a5caf922fc54c0b8d9e0ab926bbd189..2ea084cca3150718145e2f8c5558da3a630b8ceb 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
@@ -153,6 +153,9 @@ WebInspector.TabbedPane.prototype = {
this._closeableTabs = closeableTabs;
},
+ /**
+ * @override
+ */
focus: function()
{
if (this.visibleView)
@@ -432,7 +435,7 @@ WebInspector.TabbedPane.prototype = {
if (tab.view === view)
return;
- var shouldFocus = tab.view.element.isSelfOrAncestor(WebInspector.currentFocusElement());
+ var shouldFocus = tab.view.hasFocus();
this.suspendInvalidations();

Powered by Google App Engine
This is Rietveld 408576698