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

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

Issue 2175903002: DevTools: follow-up to view introduction, fix styles css. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 years, 5 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/Widget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Widget.js b/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
index e8f1b122757e6c398e684feba48b1fba910a3235..bed9940536a657292125376311ef65c51b4a2471 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
@@ -94,6 +94,8 @@ WebInspector.Widget.prototype = {
*/
shouldHideOnDetach: function()
{
+ if (!this.element.parentElement)
+ return false;
if (this._hideOnDetach)
return true;
for (var child of this._children) {
@@ -694,6 +696,7 @@ WebInspector.VBoxWithResizeCallback.prototype = {
WebInspector.View = function(title, isWebComponent)
{
WebInspector.VBox.call(this, isWebComponent);
+ this.element.classList.add("view");
this._title = title;
/** @type {!Array<!WebInspector.ToolbarItem>} */
this._toolbarItems = [];

Powered by Google App Engine
This is Rietveld 408576698