Commit ea156be2 authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

DevTools: [regression] console layout is broken for dom nodes.

BUG=526221
NOTRY=true

Review URL: https://codereview.chromium.org/1325483003

git-svn-id: svn://svn.chromium.org/blink/trunk@201502 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 48e83f57
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment