Bug 974749 - Make nsFrame::DumpFrameTree wrapper functions use stderr so they can go to logcat. r=tn
authorCameron McCormack <cam@mcc.id.au>
Thu, 20 Feb 2014 14:57:02 +1100
changeset 169627 b1d92f0829531ee34cfe5d14f6b276023f52911d
parent 169626 abfaf0ccae19a0702be8a8d3427cb15cee5f4add
child 169628 9da5cb817aae508800351853a862a1f7ab9e52e0
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerstn
bugs974749
milestone30.0a1
Bug 974749 - Make nsFrame::DumpFrameTree wrapper functions use stderr so they can go to logcat. r=tn
layout/generic/nsFrame.cpp
--- a/layout/generic/nsFrame.cpp
+++ b/layout/generic/nsFrame.cpp
@@ -5244,22 +5244,22 @@ int32_t nsFrame::ContentIndexInContainer
       result = parentContent->IndexOf(content);
     }
   }
 
   return result;
 }
 
 /**
- * List a frame tree to stdout. Meant to be called from gdb.
+ * List a frame tree to stderr. Meant to be called from gdb.
  */
 void
 DebugListFrameTree(nsIFrame* aFrame)
 {
-  ((nsFrame*)aFrame)->List(stdout);
+  ((nsFrame*)aFrame)->List(stderr);
 }
 
 void
 nsIFrame::ListTag(nsACString& aTo) const
 {
   ListTag(aTo, this);
 }
 
@@ -5379,23 +5379,23 @@ nsFrame::MakeFrameName(const nsAString& 
   PR_snprintf(buf, sizeof(buf), "(%d)", ContentIndexInContainer(this));
   AppendASCIItoUTF16(buf, aResult);
   return NS_OK;
 }
 
 void
 nsIFrame::DumpFrameTree()
 {
-  RootFrameList(PresContext(), stdout);
+  RootFrameList(PresContext(), stderr);
 }
 
 void
 nsIFrame::DumpFrameTreeLimited()
 {
-  List(stdout);
+  List(stderr);
 }
 
 void
 nsIFrame::RootFrameList(nsPresContext* aPresContext, FILE* out, const char* aPrefix)
 {
   if (!aPresContext || !out)
     return;