Bug 969668 - Don't show rule count of original source until it's been linked to a file. r=pbrosset

This commit is contained in:
Heather Arthur 2014-02-11 09:26:02 -05:00
parent a046a54db7
commit cd98d0c87a

View File

@ -578,7 +578,7 @@ StyleEditorUI.prototype = {
}
let ruleCount = editor.styleSheet.ruleCount;
if (editor.styleSheet.relatedStyleSheet) {
if (editor.styleSheet.relatedStyleSheet && editor.linkedCSSFile) {
ruleCount = editor.styleSheet.relatedStyleSheet.ruleCount;
}
if (ruleCount === undefined) {