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 1d515cb4ad
commit 5fa0aba3f9

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) {