Bug 1278294 - make TreeInfo to log document address, r=yzen

This commit is contained in:
Alexander Surkov 2016-06-07 17:20:12 -04:00
Родитель 4981a013ad
Коммит c203395a1e
1 изменённых файлов: 13 добавлений и 7 удалений

Просмотреть файл

@ -617,13 +617,19 @@ void
logging::TreeInfo(const char* aMsg, uint32_t aExtraFlags, ...)
{
if (IsEnabledAll(logging::eTree | aExtraFlags)) {
MsgBegin("TREE", aMsg);
va_list vl;
va_start(vl, aExtraFlags);
const char* descr = nullptr;
while ((descr = va_arg(vl, const char*))) {
AccessibleInfo(descr, va_arg(vl, Accessible*));
const char* descr = va_arg(vl, const char*);
if (descr) {
Accessible* acc = va_arg(vl, Accessible*);
MsgBegin("TREE", "%s; doc: %p", aMsg, acc ? acc->Document() : nullptr);
AccessibleInfo(descr, acc);
while ((descr = va_arg(vl, const char*))) {
AccessibleInfo(descr, va_arg(vl, Accessible*));
}
}
else {
MsgBegin("TREE", aMsg);
}
va_end(vl);
@ -641,7 +647,7 @@ logging::TreeInfo(const char* aMsg, uint32_t aExtraFlags,
const char* aMsg2, nsINode* aNode)
{
if (IsEnabledAll(logging::eTree | logging::eVerbose)) {
MsgBegin("TREE", aMsg);
MsgBegin("TREE", "%s; doc: %p", aMsg, aAcc ? aAcc->Document() : nullptr);
AccessibleInfo(aMsg1, aAcc);
Accessible* acc = aAcc->Document()->GetAccessible(aNode);
if (acc) {
@ -659,7 +665,7 @@ void
logging::TreeInfo(const char* aMsg, uint32_t aExtraFlags, Accessible* aParent)
{
if (IsEnabledAll(logging::eTree | aExtraFlags)) {
MsgBegin("TREE", aMsg);
MsgBegin("TREE", "%s; doc: %p", aMsg, aParent->Document());
AccessibleInfo("container", aParent);
for (uint32_t idx = 0; idx < aParent->ChildCount(); idx++) {
AccessibleInfo("child", aParent->GetChildAt(idx));