зеркало из https://github.com/mozilla/gecko-dev.git
91665 "Dump Style Contexts doesn't work anymore". Fixed nsStyleContext::List(). r=attinasi/sr=hyatt
This commit is contained in:
Родитель
e8b64b123c
Коммит
2e03c268a6
|
@ -845,7 +845,28 @@ void nsStyleContext::List(FILE* out, PRInt32 aIndent)
|
|||
fputs(NS_LossyConvertUCS2toASCII(buffer).get(), out);
|
||||
fputs(" ", out);
|
||||
}
|
||||
|
||||
|
||||
nsCOMPtr<nsIRuleNode> ruleNode;
|
||||
GetRuleNode(getter_AddRefs(ruleNode));
|
||||
if (ruleNode) {
|
||||
fputs("{\n", out);
|
||||
while (ruleNode) {
|
||||
nsCOMPtr<nsIStyleRule> styleRule;
|
||||
ruleNode->GetRule(getter_AddRefs(styleRule));
|
||||
if (styleRule) {
|
||||
styleRule->List(out, aIndent + 1);
|
||||
}
|
||||
nsIRuleNode* parent;
|
||||
ruleNode->GetParent(&parent);
|
||||
ruleNode = dont_AddRef(parent);
|
||||
}
|
||||
for (ix = aIndent; --ix >= 0; ) fputs(" ", out);
|
||||
fputs("}\n", out);
|
||||
}
|
||||
else {
|
||||
fputs("{}\n", out);
|
||||
}
|
||||
|
||||
if (nsnull != mChild) {
|
||||
nsStyleContext* child = mChild;
|
||||
do {
|
||||
|
|
|
@ -845,7 +845,28 @@ void nsStyleContext::List(FILE* out, PRInt32 aIndent)
|
|||
fputs(NS_LossyConvertUCS2toASCII(buffer).get(), out);
|
||||
fputs(" ", out);
|
||||
}
|
||||
|
||||
|
||||
nsCOMPtr<nsIRuleNode> ruleNode;
|
||||
GetRuleNode(getter_AddRefs(ruleNode));
|
||||
if (ruleNode) {
|
||||
fputs("{\n", out);
|
||||
while (ruleNode) {
|
||||
nsCOMPtr<nsIStyleRule> styleRule;
|
||||
ruleNode->GetRule(getter_AddRefs(styleRule));
|
||||
if (styleRule) {
|
||||
styleRule->List(out, aIndent + 1);
|
||||
}
|
||||
nsIRuleNode* parent;
|
||||
ruleNode->GetParent(&parent);
|
||||
ruleNode = dont_AddRef(parent);
|
||||
}
|
||||
for (ix = aIndent; --ix >= 0; ) fputs(" ", out);
|
||||
fputs("}\n", out);
|
||||
}
|
||||
else {
|
||||
fputs("{}\n", out);
|
||||
}
|
||||
|
||||
if (nsnull != mChild) {
|
||||
nsStyleContext* child = mChild;
|
||||
do {
|
||||
|
|
Загрузка…
Ссылка в новой задаче