Bug 1406183 - End empty layer manager dumps with a line break. r=mattwoodrow
authorMarkus Stange <mstange@themasta.com>
Fri, 06 Oct 2017 18:33:10 -0400
changeset 428125 0db7e0090021692f2f7f5f23c6f30ae877700d26
parent 428124 62d565a1c99a793688060b75ab6d13f41e5ed78c
child 428126 feb6c81d3a2a024c9a0cdd523c436a0e3b7fe983
push id97
push userfmarier@mozilla.com
push dateSat, 14 Oct 2017 01:12:59 +0000
reviewersmattwoodrow
bugs1406183
milestone58.0a1
Bug 1406183 - End empty layer manager dumps with a line break. r=mattwoodrow MozReview-Commit-ID: LCD0SYqZehK
gfx/layers/Layers.cpp
--- a/gfx/layers/Layers.cpp
+++ b/gfx/layers/Layers.cpp
@@ -2299,17 +2299,17 @@ LayerManager::Dump(std::stringstream& aS
     aStream << "<ul><li>";
   }
 #endif
   DumpSelf(aStream, aPrefix, aSorted);
 
   nsAutoCString pfx(aPrefix);
   pfx += "  ";
   if (!GetRoot()) {
-    aStream << nsPrintfCString("%s(null)", pfx.get()).get();
+    aStream << nsPrintfCString("%s(null)\n", pfx.get()).get();
     if (aDumpHtml) {
       aStream << "</li></ul>";
     }
     return;
   }
 
   if (aDumpHtml) {
     aStream << "<ul>";