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

Side by Side Diff: Source/devtools/front_end/components/PropertiesSection.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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 20 matching lines...) Expand all
31 * @constructor 31 * @constructor
32 * @extends {WebInspector.Section} 32 * @extends {WebInspector.Section}
33 * @param {string|!Element} title 33 * @param {string|!Element} title
34 * @param {string=} subtitle 34 * @param {string=} subtitle
35 */ 35 */
36 WebInspector.PropertiesSection = function(title, subtitle) 36 WebInspector.PropertiesSection = function(title, subtitle)
37 { 37 {
38 WebInspector.Section.call(this, title, subtitle); 38 WebInspector.Section.call(this, title, subtitle);
39 39
40 this.headerElement.classList.add("monospace"); 40 this.headerElement.classList.add("monospace");
41 this.propertiesElement = document.createElement("ol"); 41 this.propertiesElement = createElement("ol");
42 this.propertiesElement.className = "properties properties-tree monospace"; 42 this.propertiesElement.className = "properties properties-tree monospace";
43 this.propertiesTreeOutline = new TreeOutline(this.propertiesElement, true); 43 this.propertiesTreeOutline = new TreeOutline(this.propertiesElement, true);
44 this.propertiesTreeOutline.setFocusable(false); 44 this.propertiesTreeOutline.setFocusable(false);
45 this.propertiesTreeOutline.section = this; 45 this.propertiesTreeOutline.section = this;
46 46
47 this.element.appendChild(this.propertiesElement); 47 this.element.appendChild(this.propertiesElement);
48 } 48 }
49 49
50 WebInspector.PropertiesSection.prototype = { 50 WebInspector.PropertiesSection.prototype = {
51 __proto__: WebInspector.Section.prototype 51 __proto__: WebInspector.Section.prototype
52 } 52 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components/OverviewGrid.js ('k') | Source/devtools/front_end/components/Section.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698