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

Side by Side Diff: Source/devtools/front_end/components/NativeBreakpointsSidebarPane.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 19 matching lines...) Expand all
30 30
31 /** 31 /**
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.SidebarPane} 33 * @extends {WebInspector.SidebarPane}
34 */ 34 */
35 WebInspector.NativeBreakpointsSidebarPane = function(title) 35 WebInspector.NativeBreakpointsSidebarPane = function(title)
36 { 36 {
37 WebInspector.SidebarPane.call(this, title); 37 WebInspector.SidebarPane.call(this, title);
38 this.registerRequiredCSS("breakpointsList.css"); 38 this.registerRequiredCSS("breakpointsList.css");
39 39
40 this.listElement = document.createElement("ol"); 40 this.listElement = createElement("ol");
41 this.listElement.className = "breakpoint-list"; 41 this.listElement.className = "breakpoint-list";
42 42
43 this.emptyElement = document.createElement("div"); 43 this.emptyElement = createElement("div");
44 this.emptyElement.className = "info"; 44 this.emptyElement.className = "info";
45 this.emptyElement.textContent = WebInspector.UIString("No Breakpoints"); 45 this.emptyElement.textContent = WebInspector.UIString("No Breakpoints");
46 46
47 this.bodyElement.appendChild(this.emptyElement); 47 this.bodyElement.appendChild(this.emptyElement);
48 } 48 }
49 49
50 WebInspector.NativeBreakpointsSidebarPane.prototype = { 50 WebInspector.NativeBreakpointsSidebarPane.prototype = {
51 /** 51 /**
52 * @param {!Element} element 52 * @param {!Element} element
53 * @param {?Node=} beforeNode 53 * @param {?Node=} beforeNode
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 { 86 {
87 this.listElement.removeChildren(); 87 this.listElement.removeChildren();
88 if (this.listElement.parentElement) { 88 if (this.listElement.parentElement) {
89 this.bodyElement.removeChild(this.listElement); 89 this.bodyElement.removeChild(this.listElement);
90 this.bodyElement.appendChild(this.emptyElement); 90 this.bodyElement.appendChild(this.emptyElement);
91 } 91 }
92 }, 92 },
93 93
94 __proto__: WebInspector.SidebarPane.prototype 94 __proto__: WebInspector.SidebarPane.prototype
95 } 95 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components/InspectorView.js ('k') | Source/devtools/front_end/components/ObjectPopoverHelper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698