Bug 852118 followup. Fix the layout debugger to fix bustage
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 19 Mar 2013 22:20:16 -0400
changeset 125556 cfa733af8c86920507ac95e8ebe9e0e9035d8591
parent 125555 b00eb1ef151749fe8eb31a61227127b1939f1023
child 125557 5a2d12a34466609b04f26cb45c52e260d08af2e8
push id24459
push useremorley@mozilla.com
push dateWed, 20 Mar 2013 11:46:36 +0000
treeherdermozilla-central@1d6fe70c79c5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs852118
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 852118 followup. Fix the layout debugger to fix bustage
layout/tools/layout-debug/src/nsLayoutDebuggingTools.cpp
--- a/layout/tools/layout-debug/src/nsLayoutDebuggingTools.cpp
+++ b/layout/tools/layout-debug/src/nsLayoutDebuggingTools.cpp
@@ -302,25 +302,25 @@ nsLayoutDebuggingTools::SetReflowCounts(
         printf("************************************************\n");
 #endif
     }
     return NS_OK;
 }
 
 static void DumpAWebShell(nsIDocShellTreeItem* aShellItem, FILE* out, int32_t aIndent)
 {
-    nsXPIDLString name;
+    nsString name;
     nsCOMPtr<nsIDocShellTreeItem> parent;
     int32_t i, n;
 
     for (i = aIndent; --i >= 0; )
         fprintf(out, "  ");
 
     fprintf(out, "%p '", static_cast<void*>(aShellItem));
-    aShellItem->GetName(getter_Copies(name));
+    aShellItem->GetName(name);
     aShellItem->GetSameTypeParent(getter_AddRefs(parent));
     fputs(NS_LossyConvertUTF16toASCII(name).get(), out);
     fprintf(out, "' parent=%p <\n", static_cast<void*>(parent));
 
     ++aIndent;
     nsCOMPtr<nsIDocShellTreeNode> shellAsNode(do_QueryInterface(aShellItem));
     shellAsNode->GetChildCount(&n);
     for (i = 0; i < n; ++i) {