mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1030245 - When dumping the display list dump, ensure up to 1024 characters of each line in the dump is output. r=kats
This commit is contained in:
parent
e2bb6330dc
commit
a47d9fc5c0
@ -2979,7 +2979,16 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
|
||||
ss << "</body></html>";
|
||||
}
|
||||
|
||||
fprintf(gfxUtils::sDumpPaintFile, "%s", ss.str().c_str());
|
||||
char line[1024];
|
||||
while (!ss.eof()) {
|
||||
ss.getline(line, sizeof(line));
|
||||
fprintf_stderr(gfxUtils::sDumpPaintFile, "%s", line);
|
||||
if (ss.fail()) {
|
||||
// line was too long, skip to next newline
|
||||
ss.clear();
|
||||
ss.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
|
||||
}
|
||||
}
|
||||
|
||||
if (gfxUtils::sDumpPaintingToFile) {
|
||||
fclose(gfxUtils::sDumpPaintFile);
|
||||
|
Loading…
Reference in New Issue
Block a user