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

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

Issue 662793002: [DevTools] Replace usages of document with custom functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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: Source/devtools/front_end/sources/SourcesPanel.js
diff --git a/Source/devtools/front_end/sources/SourcesPanel.js b/Source/devtools/front_end/sources/SourcesPanel.js
index 9036c4d4318430ab1c161c1bb9f4c1d83bec75c3..e28c210c756aa40ee08d4c0cea0fbd25ae7e20c7 100644
--- a/Source/devtools/front_end/sources/SourcesPanel.js
+++ b/Source/devtools/front_end/sources/SourcesPanel.js
@@ -67,7 +67,7 @@ WebInspector.SourcesPanel = function(workspaceForTest)
this._sourcesView.registerShortcuts(this.registerShortcuts.bind(this));
this._sourcesView.show(this.editorView.mainElement());
- this._debugSidebarResizeWidgetElement = document.createElementWithClass("div", "resizer-widget");
+ this._debugSidebarResizeWidgetElement = createElementWithClass("div", "resizer-widget");
this._debugSidebarResizeWidgetElement.id = "scripts-debug-sidebar-resizer-widget";
this._splitView.addEventListener(WebInspector.SplitView.Events.ShowModeChanged, this._updateDebugSidebarResizeWidget, this);
this._updateDebugSidebarResizeWidget();
@@ -628,7 +628,7 @@ WebInspector.SourcesPanel.prototype = {
_createDebugToolbar: function()
{
- var debugToolbar = document.createElementWithClass("div", "scripts-debug-toolbar");
+ var debugToolbar = createElementWithClass("div", "scripts-debug-toolbar");
var title, handler;
var platformSpecificModifier = WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta;
@@ -683,7 +683,7 @@ WebInspector.SourcesPanel.prototype = {
_createDebugToolbarDrawer: function()
{
- var debugToolbarDrawer = document.createElementWithClass("div", "scripts-debug-toolbar-drawer");
+ var debugToolbarDrawer = createElementWithClass("div", "scripts-debug-toolbar-drawer");
var label = WebInspector.UIString("Pause On Caught Exceptions");
var setting = WebInspector.settings.pauseOnCaughtException;
« no previous file with comments | « Source/devtools/front_end/sources/ScopeChainSidebarPane.js ('k') | Source/devtools/front_end/sources/UISourceCodeFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698