Bug 399753 - Remove nsISupportsArray in the layout directory; r+sr=roc

This commit is contained in:
Arpad Borsos
2009-03-30 20:08:06 +02:00
parent 991104aa43
commit 73675ccdd1
13 changed files with 3 additions and 34 deletions

View File

@@ -65,7 +65,6 @@
#include "nsCSSAnonBoxes.h"
#include "nsCSSPseudoElements.h"
#ifdef NS_DEBUG
#include "nsISupportsArray.h"
#include "nsIStyleRule.h"
#endif
#include "nsILayoutHistoryState.h"
@@ -760,27 +759,7 @@ DumpContext(nsIFrame* aFrame, nsStyleContext* aContext)
fputs(NS_LossyConvertUTF16toASCII(buffer).get(), stdout);
fputs(" ", stdout);
}
/* XXXdwh fix debugging here. Need to add a List method to nsRuleNode
and have the context call list on its rule node.
PRInt32 count = aContext->GetStyleRuleCount();
if (0 < count) {
fputs("{\n", stdout);
nsISupportsArray* rules = aContext->GetStyleRules();
PRInt32 ix;
for (ix = 0; ix < count; ix++) {
nsIStyleRule* rule = (nsIStyleRule*)rules->ElementAt(ix);
rule->List(stdout, 1);
NS_RELEASE(rule);
}
NS_RELEASE(rules);
fputs("}\n", stdout);
}
else
*/
{
fputs("{}\n", stdout);
}
fputs("{}\n", stdout);
}
}