From a2efc1f565754b09caa001d262dc27c2b9a2998d Mon Sep 17 00:00:00 2001 From: Botond Ballo Date: Fri, 25 Sep 2015 19:19:04 -0400 Subject: [PATCH] Bug 1208661 - Make ContentClient dumping play nicely with HTML dumping. r=BenWa --- gfx/layers/client/ContentClient.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx/layers/client/ContentClient.cpp b/gfx/layers/client/ContentClient.cpp index ea87d142153..52952d14876 100644 --- a/gfx/layers/client/ContentClient.cpp +++ b/gfx/layers/client/ContentClient.cpp @@ -415,7 +415,9 @@ ContentClientDoubleBuffered::Dump(std::stringstream& aStream, bool aDumpHtml) { // TODO We should combine the OnWhite/OnBlack here an just output a single image. - aStream << "\n" << aPrefix << "Surface: "; + if (!aDumpHtml) { + aStream << "\n" << aPrefix << "Surface: "; + } CompositableClient::DumpTextureClient(aStream, mFrontClient); }