mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1208661 - Do not assume that PaintRoot()'s contributions to the HTML paint dump will all be inside a <script> tag. r=BenWa
This commit is contained in:
parent
1db3fda48a
commit
abebc3df94
@ -3610,9 +3610,9 @@ DumpPaintedImage(nsDisplayItem* aItem, SourceSurface* aSurface)
|
||||
nsCString string(aItem->Name());
|
||||
string.Append('-');
|
||||
string.AppendInt((uint64_t)aItem);
|
||||
fprintf_stderr(gfxUtils::sDumpPaintFile, "array[\"%s\"]=\"", string.BeginReading());
|
||||
fprintf_stderr(gfxUtils::sDumpPaintFile, "<script>array[\"%s\"]=\"", string.BeginReading());
|
||||
gfxUtils::DumpAsDataURI(aSurface, gfxUtils::sDumpPaintFile);
|
||||
fprintf_stderr(gfxUtils::sDumpPaintFile, "\";");
|
||||
fprintf_stderr(gfxUtils::sDumpPaintFile, "\";</script>\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -3318,9 +3318,6 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
|
||||
*ss << nsPrintfCString("Painting --- before optimization (dirty %d,%d,%d,%d):\n",
|
||||
dirtyRect.x, dirtyRect.y, dirtyRect.width, dirtyRect.height).get();
|
||||
nsFrame::PrintDisplayList(&builder, list, *ss, gfxUtils::sDumpPaintingToFile);
|
||||
if (gfxUtils::sDumpPaintingToFile) {
|
||||
*ss << "<script>";
|
||||
}
|
||||
|
||||
if (gfxUtils::sDumpPainting || gfxUtils::sDumpPaintItems) {
|
||||
// Flush stream now to avoid reordering dump output relative to
|
||||
@ -3364,11 +3361,6 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
|
||||
paintStart);
|
||||
|
||||
if (consoleNeedsDisplayList || profilerNeedsDisplayList) {
|
||||
#ifdef MOZ_DUMP_PAINTING
|
||||
if (gfxUtils::sDumpPaintingToFile) {
|
||||
*ss << "</script>";
|
||||
}
|
||||
#endif
|
||||
*ss << "Painting --- after optimization:\n";
|
||||
nsFrame::PrintDisplayList(&builder, list, *ss, gfxUtils::sDumpPaintingToFile);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user