Bug 813373, patch 4: fix printfs that crept in in patch 3.

This commit is contained in:
L. David Baron 2012-11-20 13:22:35 -08:00
parent 0de71cb2d2
commit b76b368af6
4 changed files with 9 additions and 9 deletions

View File

@ -257,7 +257,7 @@ BodyRule::MapRuleInfoInto(nsRuleData* aData)
BodyRule::List(FILE* out, int32_t aIndent) const
{
for (int32_t index = aIndent; --index >= 0; ) fputs(" ", out);
printf("[body rule] {}\n");
fputs("[body rule] {}\n", out);
}
#endif

View File

@ -186,15 +186,15 @@ AnimValuesStyleRule::MapRuleInfoInto(nsRuleData* aRuleData)
AnimValuesStyleRule::List(FILE* out, int32_t aIndent) const
{
for (int32_t index = aIndent; --index >= 0; ) fputs(" ", out);
printf("[anim values] { ");
fputs("[anim values] { ", out);
for (uint32_t i = 0, i_end = mPropertyValuePairs.Length(); i < i_end; ++i) {
const PropertyValuePair &pair = mPropertyValuePairs[i];
nsAutoString value;
nsStyleAnimation::UncomputeValue(pair.mProperty, pair.mValue, value);
printf("%s: %s; ", nsCSSProps::GetStringValue(pair.mProperty).get(),
NS_ConvertUTF16toUTF8(value).get());
fprintf(out, "%s: %s; ", nsCSSProps::GetStringValue(pair.mProperty).get(),
NS_ConvertUTF16toUTF8(value).get());
}
printf("}\n");
fputs("}\n", out);
}
#endif

View File

@ -59,7 +59,7 @@ nsHTMLStyleSheet::HTMLColorRule::MapRuleInfoInto(nsRuleData* aRuleData)
nsHTMLStyleSheet::HTMLColorRule::List(FILE* out, int32_t aIndent) const
{
for (int32_t index = aIndent; --index >= 0; ) fputs(" ", out);
printf("[html color rule] {}\n");
fputs("[html color rule] {}\n", out);
}
#endif
@ -71,7 +71,7 @@ NS_IMPL_ISUPPORTS1(nsHTMLStyleSheet::GenericTableRule, nsIStyleRule)
nsHTMLStyleSheet::GenericTableRule::List(FILE* out, int32_t aIndent) const
{
for (int32_t index = aIndent; --index >= 0; ) fputs(" ", out);
printf("[generic table rule] {}\n");
fputs("[generic table rule] {}\n", out);
}
#endif

View File

@ -46,7 +46,7 @@ nsEmptyStyleRule::MapRuleInfoInto(nsRuleData* aRuleData)
nsEmptyStyleRule::List(FILE* out, int32_t aIndent) const
{
for (int32_t index = aIndent; --index >= 0; ) fputs(" ", out);
printf("[empty style rule] {}\n");
fputs("[empty style rule] {}\n", out);
}
#endif
@ -92,7 +92,7 @@ nsInitialStyleRule::MapRuleInfoInto(nsRuleData* aRuleData)
nsInitialStyleRule::List(FILE* out, int32_t aIndent) const
{
for (int32_t index = aIndent; --index >= 0; ) fputs(" ", out);
printf("[initial style rule] {}\n");
fputs("[initial style rule] {}\n", out);
}
#endif