Bug 289927: JS Console shouldn't show line number if line is 0, xpfe patch by Serge GAUTHERIE <gautheri@noos.fr>, r=neil

This commit is contained in:
gavin%gavinsharp.com 2006-07-20 00:39:04 +00:00
parent e923291d6e
commit f283ebc560
2 changed files with 15 additions and 9 deletions

View File

@ -19,12 +19,12 @@
.console-msg-text {
white-space: -moz-pre-wrap;
}
}
.console-error-source {
-moz-binding: url("chrome://global/content/consoleBindings.xml#console-error-source");
}
.console-dots {
width: 1px;
}
@ -37,21 +37,25 @@
> .console-row[type="error"]
{
display: none;
}
}
.console-box[mode="Errors"] > .console-box-internal > .console-rows
> .console-row[type="warning"],
.console-box[mode="Messages"] > .console-box-internal > .console-rows
> .console-row[type="warning"]
{
display: none;
}
}
.console-box[mode="Errors"] > .console-box-internal > .console-rows
> .console-row[type="message"],
.console-box[mode="Warnings"] > .console-box-internal > .console-rows
> .console-row[type="message"]
{
display: none;
}
}
/* If line number is 0, hide the line number section */
.lineNumberRow[line="0"] {
display: none;
}

View File

@ -303,8 +303,10 @@
<xul:label class="label" value="&errFile.label;"/>
<xul:box class="console-error-source" xbl:inherits="url,line"/>
<spacer flex="1"/>
<xul:label class="label" value="&errLine.label;"/>
<xul:label class="label" xbl:inherits="value=line" flex="1"/>
<xul:hbox class="lineNumberRow" xbl:inherits="line">
<xul:label class="label" value="&errLine.label;"/>
<xul:label class="label" xbl:inherits="value=line"/>
</xul:hbox>
</xul:box>
<xul:vbox class="console-row-code" xbl:inherits="selected,hidden=hideCode">
<xul:label class="monospace console-code" xbl:inherits="value=code" crop="end"/>