diff --git a/gfx/layers/Layers.cpp b/gfx/layers/Layers.cpp index ce1f0c4b5a74..d721f9e646f4 100644 --- a/gfx/layers/Layers.cpp +++ b/gfx/layers/Layers.cpp @@ -1427,11 +1427,11 @@ void WriteSnapshotToDumpFile_internal(T* aObj, DataSourceSurface* aSurf) nsCString string(aObj->Name()); string.Append('-'); string.AppendInt((uint64_t)aObj); - if (gfxUtils::sDumpPaintFile) { + if (gfxUtils::sDumpPaintFile != stderr) { fprintf_stderr(gfxUtils::sDumpPaintFile, "array[\"%s\"]=\"", string.BeginReading()); } gfxUtils::DumpAsDataURI(aSurf, gfxUtils::sDumpPaintFile); - if (gfxUtils::sDumpPaintFile) { + if (gfxUtils::sDumpPaintFile != stderr) { fprintf_stderr(gfxUtils::sDumpPaintFile, "\";"); } } diff --git a/gfx/layers/composite/ContentHost.cpp b/gfx/layers/composite/ContentHost.cpp index 8e6d05b3f7ab..9fe1cf60c3ee 100644 --- a/gfx/layers/composite/ContentHost.cpp +++ b/gfx/layers/composite/ContentHost.cpp @@ -261,23 +261,40 @@ ContentHostTexture::Dump(std::stringstream& aStream, bool aDumpHtml) { #ifdef MOZ_DUMP_PAINTING - if (!aDumpHtml) { - return; + if (aDumpHtml) { + aStream << ""; #endif }