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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js

Issue 1461783003: [DevTools] Get rid of floats in treeoutline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline Created 5 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 this._objectTreeElement = new WebInspector.ObjectPropertiesSection.RootEleme nt(object, emptyPlaceholder, ignoreHasOwnProperty, extraProperties); 42 this._objectTreeElement = new WebInspector.ObjectPropertiesSection.RootEleme nt(object, emptyPlaceholder, ignoreHasOwnProperty, extraProperties);
43 this.appendChild(this._objectTreeElement); 43 this.appendChild(this._objectTreeElement);
44 if (typeof title === "string" || !title) 44 if (typeof title === "string" || !title)
45 this.element.createChild("span").textContent = title || ""; 45 this.element.createChild("span").textContent = title || "";
46 else 46 else
47 this.element.appendChild(title); 47 this.element.appendChild(title);
48 48
49 this.element._section = this; 49 this.element._section = this;
50 this.registerRequiredCSS("components/objectValue.css"); 50 this.registerRequiredCSS("components/objectValue.css");
51 this.registerRequiredCSS("components/objectPropertiesSection.css"); 51 this.registerRequiredCSS("components/objectPropertiesSection.css");
52 this.rootElement().childrenListElement.classList.add("source-code", "object- properties-section") 52 this.rootElement().childrenListElement.classList.add("source-code", "object- properties-section");
53 } 53 }
54 54
55 /** @const */ 55 /** @const */
56 WebInspector.ObjectPropertiesSection._arrayLoadThreshold = 100; 56 WebInspector.ObjectPropertiesSection._arrayLoadThreshold = 100;
57 57
58 /** 58 /**
59 * @param {!WebInspector.RemoteObject} object 59 * @param {!WebInspector.RemoteObject} object
60 * @param {boolean=} skipProto 60 * @param {boolean=} skipProto
61 * @return {!Element} 61 * @return {!Element}
62 */ 62 */
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 { 150 {
151 this._object = object; 151 this._object = object;
152 this._extraProperties = extraProperties || []; 152 this._extraProperties = extraProperties || [];
153 this._ignoreHasOwnProperty = !!ignoreHasOwnProperty; 153 this._ignoreHasOwnProperty = !!ignoreHasOwnProperty;
154 this._emptyPlaceholder = emptyPlaceholder; 154 this._emptyPlaceholder = emptyPlaceholder;
155 var contentElement = createElement("content"); 155 var contentElement = createElement("content");
156 TreeElement.call(this, contentElement); 156 TreeElement.call(this, contentElement);
157 this.setExpandable(true); 157 this.setExpandable(true);
158 this.selectable = false; 158 this.selectable = false;
159 this.toggleOnClick = true; 159 this.toggleOnClick = true;
160 this.listItemElement.classList.add("object-properties-section-root-element") ;
160 } 161 }
161 162
162 WebInspector.ObjectPropertiesSection.RootElement.prototype = { 163 WebInspector.ObjectPropertiesSection.RootElement.prototype = {
163 164
164 onexpand: function() 165 onexpand: function()
165 { 166 {
166 if (this.treeOutline) 167 if (this.treeOutline)
167 this.treeOutline.element.classList.add("expanded"); 168 this.treeOutline.element.classList.add("expanded");
168 }, 169 },
169 170
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 return; 1255 return;
1255 if (token === "(") { 1256 if (token === "(") {
1256 params = []; 1257 params = [];
1257 return; 1258 return;
1258 } 1259 }
1259 if (params && tokenType === "js-def") 1260 if (params && tokenType === "js-def")
1260 params.push(token); 1261 params.push(token);
1261 } 1262 }
1262 } 1263 }
1263 } 1264 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698