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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user