зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1278294 - UpdateTreeOnRemoval should use logging::TreeInfo, part2, r=yzen
This commit is contained in:
Родитель
b1d79ef530
Коммит
7a5475e4a8
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче