Bug 1278294 - UpdateTreeOnRemoval should use logging::TreeInfo, part2, r=yzen

This commit is contained in:
Alexander Surkov 2016-06-07 17:21:59 -04:00
parent b1d79ef530
commit 7a5475e4a8
2 changed files with 3 additions and 12 deletions

View File

@ -632,7 +632,6 @@ logging::TreeInfo(const char* aMsg, uint32_t aExtraFlags, ...)
MsgBegin("TREE", aMsg);
}
va_end(vl);
MsgEnd();
if (aExtraFlags & eStack) {
@ -646,7 +645,7 @@ logging::TreeInfo(const char* aMsg, uint32_t aExtraFlags,
const char* aMsg1, Accessible* aAcc,
const char* aMsg2, nsINode* aNode)
{
if (IsEnabledAll(logging::eTree | logging::eVerbose)) {
if (IsEnabledAll(logging::eTree | logging::aExtraFlags)) {
MsgBegin("TREE", "%s; doc: %p", aMsg, aAcc ? aAcc->Document() : nullptr);
AccessibleInfo(aMsg1, aAcc);
Accessible* acc = aAcc->Document()->GetAccessible(aNode);

View File

@ -1856,16 +1856,8 @@ DocAccessible::UpdateTreeOnRemoval(Accessible* aContainer, nsIContent* aChildNod
// If child node is not accessible then look for its accessible children.
Accessible* child = GetAccessible(aChildNode);
#ifdef A11Y_LOG
if (logging::IsEnabled(logging::eTree)) {
logging::MsgBegin("TREE", "process content removal");
logging::Node("container", aContainer->GetNode());
logging::Node("child", aChildNode);
if (child)
logging::Address("child", child);
else
logging::MsgEntry("child accessible: null");
logging::MsgEnd();
logging::TreeInfo("process content removal", 0,
"container", aContainer, "child", aChildNode);
}
#endif