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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js

Issue 2356423002: [DevTools] Turn WebInspector.Panel into a web component.
Patch Set: partial fixes 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/sources/SourcesPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
index c02ea12216eda0fd8c6b6d96b84fa775492dacdb..2dcbd8685f856dcfc8b9418a707739046fb14d84 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
@@ -36,7 +36,7 @@ WebInspector.SourcesPanel = function()
WebInspector.Panel.call(this, "sources");
WebInspector.SourcesPanel._instance = this;
this.registerRequiredCSS("sources/sourcesPanel.css");
- new WebInspector.DropTarget(this.element, [WebInspector.DropTarget.Types.Files], WebInspector.UIString("Drop workspace folder here"), this._handleDrop.bind(this));
+ new WebInspector.DropTarget(this.contentElement, [WebInspector.DropTarget.Types.Files], WebInspector.UIString("Drop workspace folder here"), this._handleDrop.bind(this));
this._workspace = WebInspector.workspace;
this._networkMapping = WebInspector.networkMapping;
@@ -54,7 +54,7 @@ WebInspector.SourcesPanel = function()
const initialDebugSidebarWidth = 225;
this._splitWidget = new WebInspector.SplitWidget(true, true, "sourcesPanelSplitViewState", initialDebugSidebarWidth);
this._splitWidget.enableShowModeSaving();
- this._splitWidget.show(this.element);
+ this._splitWidget.show(this.contentElement);
// Create scripts navigator
const initialNavigatorWidth = 225;
@@ -228,7 +228,7 @@ WebInspector.SourcesPanel.prototype = {
onResize: function()
{
if (WebInspector.moduleSetting("sidebarPosition").get() === "auto")
- this.element.window().requestAnimationFrame(this._updateSidebarPosition.bind(this)); // Do not force layout.
+ this.contentElement.window().requestAnimationFrame(this._updateSidebarPosition.bind(this)); // Do not force layout.
},
/**

Powered by Google App Engine
This is Rietveld 408576698