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

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

Issue 2924413002: DevTools: migrate sources navigator to shadow (Closed)
Patch Set: Created 3 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
index 6048c8d2f3fcae7434c313a47641c78ba6473d2a..ecedcab44fcd9ae6476c63d64266535c5fc50a69 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
@@ -147,7 +147,7 @@ Sources.FilesNavigatorView = class extends Sources.NavigatorView {
addButton.addEventListener(
UI.ToolbarButton.Events.Click, () => Persistence.isolatedFileSystemManager.addFileSystem());
toolbar.appendToolbarItem(addButton);
- this.element.insertBefore(toolbar.element, this.element.firstChild);
+ this.contentElement.insertBefore(toolbar.element, this.contentElement.firstChild);
}
/**
@@ -198,7 +198,7 @@ Sources.SnippetsNavigatorView = class extends Sources.NavigatorView {
var newButton = new UI.ToolbarButton('', 'largeicon-add', Common.UIString('New snippet'));
newButton.addEventListener(UI.ToolbarButton.Events.Click, this._handleCreateSnippet.bind(this));
toolbar.appendToolbarItem(newButton);
- this.element.insertBefore(toolbar.element, this.element.firstChild);
+ this.contentElement.insertBefore(toolbar.element, this.contentElement.firstChild);
}
/**
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698