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

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

Issue 2351823003: [DevTools] Remove a bunch of styles from inspectorStyle.css. (Closed)
Patch Set: Created 4 years, 3 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
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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 valueElement.classList.add("object-value-" + (value.subtype || value.typ e)); 376 valueElement.classList.add("object-value-" + (value.subtype || value.typ e));
377 valueElement.title = value.description || ""; 377 valueElement.title = value.description || "";
378 return valueElement; 378 return valueElement;
379 }, 379 },
380 380
381 update: function() 381 update: function()
382 { 382 {
383 this.nameElement = WebInspector.ObjectPropertiesSection.createNameElemen t(this.property.name); 383 this.nameElement = WebInspector.ObjectPropertiesSection.createNameElemen t(this.property.name);
384 if (!this.property.enumerable) 384 if (!this.property.enumerable)
385 this.nameElement.classList.add("object-properties-section-dimmed"); 385 this.nameElement.classList.add("object-properties-section-dimmed");
386 if (this.property.isAccessorProperty())
387 this.nameElement.classList.add("properties-accessor-property-name");
388 if (this.property.synthetic) 386 if (this.property.synthetic)
389 this.nameElement.classList.add("synthetic-property"); 387 this.nameElement.classList.add("synthetic-property");
390 388
391 this._updatePropertyPath(); 389 this._updatePropertyPath();
392 this.nameElement.addEventListener("contextmenu", this._contextMenuFired. bind(this, this.property), false); 390 this.nameElement.addEventListener("contextmenu", this._contextMenuFired. bind(this, this.property), false);
393 391
394 var separatorElement = createElementWithClass("span", "object-properties -section-separator"); 392 var separatorElement = createElementWithClass("span", "object-properties -section-separator");
395 separatorElement.textContent = ": "; 393 separatorElement.textContent = ": ";
396 394
397 if (this.property.value) { 395 if (this.property.value) {
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 1350
1353 result = currentName + (result ? "." + result : ""); 1351 result = currentName + (result ? "." + result : "");
1354 current = current.parent; 1352 current = current.parent;
1355 } 1353 }
1356 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertie sSectionExpandController._treeOutlineId]; 1354 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertie sSectionExpandController._treeOutlineId];
1357 result = treeOutlineId + (result ? ":" + result : ""); 1355 result = treeOutlineId + (result ? ":" + result : "");
1358 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cached PathSymbol] = result; 1356 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cached PathSymbol] = result;
1359 return result; 1357 return result;
1360 } 1358 }
1361 } 1359 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698