зеркало из https://github.com/mozilla/gecko-dev.git
Fix bad printfs in DumpRegressionData. b=306741 r=biesi sr=tor
This commit is contained in:
Родитель
aec4d434c1
Коммит
cc03866d66
|
@ -894,18 +894,23 @@ void nsStyleContext::DumpRegressionData(nsPresContext* aPresContext, FILE* out,
|
|||
URICString(svg->mMarkerMid).get(),
|
||||
URICString(svg->mMarkerStart).get());
|
||||
|
||||
for (PRUint32 i = 0; i < svg->mStrokeDasharrayLength; i++)
|
||||
for (PRUint32 i = 0; i < svg->mStrokeDasharrayLength; i++) {
|
||||
svg->mStrokeDasharray[i].ToString(str);
|
||||
fprintf(out,
|
||||
"%f%c",
|
||||
svg->mStrokeDasharray[i],
|
||||
"%s%c",
|
||||
NS_ConvertUCS2toUTF8(str).get(),
|
||||
(i == svg->mStrokeDasharrayLength) ? ' ' : ',');
|
||||
}
|
||||
|
||||
fprintf(out, "%f %f %f %f %f %d %d %d %d %d %d %d %d %d\" />\n",
|
||||
svg->mStrokeDashoffset.ToString(str);
|
||||
fprintf(out, "%f %s %f %f ",
|
||||
svg->mFillOpacity,
|
||||
svg->mStrokeDashoffset,
|
||||
NS_ConvertUCS2toUTF8(str).get(),
|
||||
svg->mStrokeMiterlimit,
|
||||
svg->mStrokeOpacity,
|
||||
svg->mStrokeWidth,
|
||||
svg->mStrokeOpacity);
|
||||
svg->mStrokeWidth.ToString(str);
|
||||
fprintf(out, "%s %d %d %d %d %d %d %d %d %d\" />\n",
|
||||
NS_ConvertUCS2toUTF8(str).get(),
|
||||
(int)svg->mStrokeDasharrayLength,
|
||||
(int)svg->mClipRule,
|
||||
(int)svg->mFillRule,
|
||||
|
|
Загрузка…
Ссылка в новой задаче