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

Unified Diff: Source/devtools/front_end/elements/ElementsTreeElement.js

Issue 1325483003: DevTools: [regression] console layout is broken for dom nodes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/elements/ElementsTreeElement.js
diff --git a/Source/devtools/front_end/elements/ElementsTreeElement.js b/Source/devtools/front_end/elements/ElementsTreeElement.js
index 4955094d33c9dcf6ce32dcae93aac5e2c8241372..2055cc346a46908937df508412e2693887bd907b 100644
--- a/Source/devtools/front_end/elements/ElementsTreeElement.js
+++ b/Source/devtools/front_end/elements/ElementsTreeElement.js
@@ -40,7 +40,7 @@ WebInspector.ElementsTreeElement = function(node, elementCloseTag)
TreeElement.call(this);
this._node = node;
- this._decorationsElement = createElementWithClass("div");
+ this._decorationsElement = createElementWithClass("div", "hidden");
this.listItemElement.appendChild(this._decorationsElement);
this._elementCloseTag = elementCloseTag;
@@ -1128,6 +1128,7 @@ WebInspector.ElementsTreeElement.prototype = {
function setTitle()
{
this._decorationsElement.removeChildren();
+ this._decorationsElement.classList.add("hidden");
if (!decorations.length && !descendantDecorations.length)
return;
@@ -1165,6 +1166,7 @@ WebInspector.ElementsTreeElement.prototype = {
{
for (var color of colors) {
var child = this._decorationsElement.createChild("div", className);
+ this._decorationsElement.classList.remove("hidden");
child.style.backgroundColor = color;
child.style.borderColor = color;
if (offset)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698