Bug 1053998 - add few bits for doclifecycle logging, r=tbsaunde
authorAlexander Surkov <surkov.alexander@gmail.com>
Fri, 15 Aug 2014 16:24:22 -0400
changeset 199916 1df49d0f2f6b2254827942390f30438297855e0c
parent 199915 5e4ae67b52f06aef4fd83f34f29a018bd9264c11
child 199917 f16ba9b456d15306024595c881b2971a6615eea3
push id27326
push userryanvm@gmail.com
push dateSat, 16 Aug 2014 21:43:28 +0000
treeherdermozilla-central@94ba78a42305 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs1053998
milestone34.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 1053998 - add few bits for doclifecycle logging, r=tbsaunde
accessible/base/Logging.cpp
--- a/accessible/base/Logging.cpp
+++ b/accessible/base/Logging.cpp
@@ -191,18 +191,20 @@ LogDocLoadGroup(nsIDocument* aDocumentNo
   nsCOMPtr<nsILoadGroup> loadGroup = aDocumentNode->GetDocumentLoadGroup();
   printf("load group: %p", static_cast<void*>(loadGroup));
 }
 
 static void
 LogDocParent(nsIDocument* aDocumentNode)
 {
   nsIDocument* parentDoc = aDocumentNode->GetParentDocument();
-  printf("parent id: %p", static_cast<void*>(parentDoc));
+  printf("parent DOM document: %p", static_cast<void*>(parentDoc));
   if (parentDoc) {
+    printf(", parent acc document: %p",
+           static_cast<void*>(GetExistingDocAccessible(parentDoc)));
     printf("\n    parent ");
     LogDocURI(parentDoc);
     printf("\n");
   }
 }
 
 static void
 LogDocInfo(nsIDocument* aDocumentNode, DocAccessible* aDocument)