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 07de69f604
commit 2d6195e837

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