зеркало из https://github.com/mozilla/gecko-dev.git
bug 1316789 - UncacheChildren should not go between documents r=davidb
This commit is contained in:
Родитель
684cad415c
Коммит
85af4870f3
|
@ -2273,8 +2273,15 @@ DocAccessible::UncacheChildrenInSubtree(Accessible* aRoot)
|
||||||
RemoveDependentIDsFor(aRoot);
|
RemoveDependentIDsFor(aRoot);
|
||||||
|
|
||||||
uint32_t count = aRoot->ContentChildCount();
|
uint32_t count = aRoot->ContentChildCount();
|
||||||
for (uint32_t idx = 0; idx < count; idx++)
|
for (uint32_t idx = 0; idx < count; idx++) {
|
||||||
UncacheChildrenInSubtree(aRoot->ContentChildAt(idx));
|
Accessible* child = aRoot->ContentChildAt(idx);
|
||||||
|
|
||||||
|
// Removing this accessible from the document doesn't mean anything about
|
||||||
|
// accessibles for subdocuments, so skip removing those from the tree.
|
||||||
|
if (!child->IsDoc()) {
|
||||||
|
UncacheChildrenInSubtree(child);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (aRoot->IsNodeMapEntry() &&
|
if (aRoot->IsNodeMapEntry() &&
|
||||||
mNodeToAccessibleMap.Get(aRoot->GetNode()) == aRoot)
|
mNodeToAccessibleMap.Get(aRoot->GetNode()) == aRoot)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче