mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
Bug 1278294 - UpdateTreeOnRemoval should use logging::TreeInfo, part2, r=yzen
This commit is contained in:
parent
3844ccedea
commit
a79ccd2084
@ -632,7 +632,6 @@ logging::TreeInfo(const char* aMsg, uint32_t aExtraFlags, ...)
|
|||||||
MsgBegin("TREE", aMsg);
|
MsgBegin("TREE", aMsg);
|
||||||
}
|
}
|
||||||
va_end(vl);
|
va_end(vl);
|
||||||
|
|
||||||
MsgEnd();
|
MsgEnd();
|
||||||
|
|
||||||
if (aExtraFlags & eStack) {
|
if (aExtraFlags & eStack) {
|
||||||
@ -646,7 +645,7 @@ logging::TreeInfo(const char* aMsg, uint32_t aExtraFlags,
|
|||||||
const char* aMsg1, Accessible* aAcc,
|
const char* aMsg1, Accessible* aAcc,
|
||||||
const char* aMsg2, nsINode* aNode)
|
const char* aMsg2, nsINode* aNode)
|
||||||
{
|
{
|
||||||
if (IsEnabledAll(logging::eTree | logging::eVerbose)) {
|
if (IsEnabledAll(logging::eTree | aExtraFlags)) {
|
||||||
MsgBegin("TREE", "%s; doc: %p", aMsg, aAcc ? aAcc->Document() : nullptr);
|
MsgBegin("TREE", "%s; doc: %p", aMsg, aAcc ? aAcc->Document() : nullptr);
|
||||||
AccessibleInfo(aMsg1, aAcc);
|
AccessibleInfo(aMsg1, aAcc);
|
||||||
Accessible* acc = aAcc->Document()->GetAccessible(aNode);
|
Accessible* acc = aAcc->Document()->GetAccessible(aNode);
|
||||||
|
@ -1856,17 +1856,8 @@ DocAccessible::UpdateTreeOnRemoval(Accessible* aContainer, nsIContent* aChildNod
|
|||||||
// If child node is not accessible then look for its accessible children.
|
// If child node is not accessible then look for its accessible children.
|
||||||
Accessible* child = GetAccessible(aChildNode);
|
Accessible* child = GetAccessible(aChildNode);
|
||||||
#ifdef A11Y_LOG
|
#ifdef A11Y_LOG
|
||||||
if (logging::IsEnabled(logging::eTree)) {
|
logging::TreeInfo("process content removal", 0,
|
||||||
logging::MsgBegin("TREE", "process content removal");
|
"container", aContainer, "child", aChildNode);
|
||||||
logging::Node("container", aContainer->GetNode());
|
|
||||||
logging::Node("child", aChildNode);
|
|
||||||
if (child)
|
|
||||||
logging::Address("child", child);
|
|
||||||
else
|
|
||||||
logging::MsgEntry("child accessible: null");
|
|
||||||
|
|
||||||
logging::MsgEnd();
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TreeMutation mt(aContainer);
|
TreeMutation mt(aContainer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user