Commit 59f5251c authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

DevTools: align call stack rendering with the rest of the panels.

R=sergeyv@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180177 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 5921a7bc
...@@ -120,7 +120,6 @@ WebInspector.ParsedURL.splitURL = function(url) ...@@ -120,7 +120,6 @@ WebInspector.ParsedURL.splitURL = function(url)
return result; return result;
} }
/** /**
* http://tools.ietf.org/html/rfc3986#section-5.2.4 * http://tools.ietf.org/html/rfc3986#section-5.2.4
* @param {string} path * @param {string} path
......
...@@ -1408,52 +1408,30 @@ iframe.panel.extension { ...@@ -1408,52 +1408,30 @@ iframe.panel.extension {
.placard { .placard {
position: relative; position: relative;
border-top: 1px solid transparent;
padding: 3px 8px 4px 18px; padding: 3px 8px 4px 18px;
min-height: 18px; min-height: 18px;
white-space: nowrap; white-space: nowrap;
} }
.placard:nth-of-type(2n) {
background-color: rgb(234, 243, 255);
}
.placard.selected { .placard.selected {
border-top: 1px solid rgb(172, 172, 172); background-color: rgb(212, 212, 212);
background-image: linear-gradient(to bottom, rgb(182, 182, 182), rgb(162, 162, 162));
background-origin: padding-box;
background-clip: padding-box; background-clip: padding-box;
} }
:focus .placard.selected {
border-top: 1px solid rgb(70, 103, 215);
background-image: linear-gradient(to bottom, rgb(92, 147, 213), rgb(56, 121, 217));
}
.placard .title { .placard .title {
font-weight: normal; font-weight: normal;
word-wrap: break-word; word-wrap: break-word;
white-space: normal; white-space: normal;
} }
.placard.selected .title {
color: white;
font-weight: bold;
}
.placard .subtitle { .placard .subtitle {
float: right; float: right;
font-size: 10px;
margin-left: 5px; margin-left: 5px;
color: rgba(0, 0, 0, 0.7); color: rgba(0, 0, 0, 0.7);
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
} }
.placard.selected .subtitle {
color: rgba(255, 255, 255, 0.7);
}
.placard .subtitle a { .placard .subtitle a {
color: inherit; color: inherit;
} }
......
...@@ -38,7 +38,7 @@ WebInspector.WorkerTargetManager.prototype = { ...@@ -38,7 +38,7 @@ WebInspector.WorkerTargetManager.prototype = {
*/ */
function onConnectionReady(connection) function onConnectionReady(connection)
{ {
this._targetManager.createTarget(data.url, connection, targetCreated) this._targetManager.createTarget(WebInspector.UIString("Worker %s", data.url.asParsedURL().lastPathComponent), connection, targetCreated)
} }
/** /**
......
...@@ -404,7 +404,7 @@ WebInspector.CallStackSidebarPane.Placard.prototype = { ...@@ -404,7 +404,7 @@ WebInspector.CallStackSidebarPane.Placard.prototype = {
*/ */
_update: function(uiLocation) _update: function(uiLocation)
{ {
this.subtitle = uiLocation.linkText().trimMiddle(100); this.subtitle = uiLocation.linkText().trimMiddle(30);
}, },
__proto__: WebInspector.Placard.prototype __proto__: WebInspector.Placard.prototype
......
...@@ -29,7 +29,7 @@ WebInspector.ThreadsSidebarPane.prototype = { ...@@ -29,7 +29,7 @@ WebInspector.ThreadsSidebarPane.prototype = {
*/ */
targetAdded: function(target) targetAdded: function(target)
{ {
var placard = new WebInspector.Placard(WebInspector.displayNameForURL(target.name()), ""); var placard = new WebInspector.Placard(target.name(), "");
placard.element.addEventListener("click", this._onPlacardClick.bind(this, placard), false); placard.element.addEventListener("click", this._onPlacardClick.bind(this, placard), false);
var currentTarget = WebInspector.context.flavor(WebInspector.Target); var currentTarget = WebInspector.context.flavor(WebInspector.Target);
if (currentTarget === target) if (currentTarget === target)
...@@ -76,7 +76,7 @@ WebInspector.ThreadsSidebarPane.prototype = { ...@@ -76,7 +76,7 @@ WebInspector.ThreadsSidebarPane.prototype = {
_updateDebuggerState: function(target) _updateDebuggerState: function(target)
{ {
var placard = this._targetsToPlacards.get(target); var placard = this._targetsToPlacards.get(target);
placard.subtitle = target.debuggerModel.isPaused() ? WebInspector.UIString("Paused") : WebInspector.UIString("Running"); placard.subtitle = target.debuggerModel.isPaused() ? WebInspector.UIString("paused") : WebInspector.UIString("");
}, },
/** /**
......
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