mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 13:52:37 +00:00
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:
parent
e923291d6e
commit
f283ebc560
@ -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;
|
||||
}
|
||||
|
@ -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"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user