mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1247364 - use AllChildrenIterator::Seek by a11y tree walker, r=davidb
This commit is contained in:
parent
64ca196ec5
commit
e9f6da0b5c
@ -80,12 +80,10 @@ TreeWalker::NextChild()
|
||||
|
||||
nsIContent* parent = parentNode->AsElement();
|
||||
top = PushState(parent);
|
||||
while (nsIContent* childNode = Next(top)) {
|
||||
if (childNode == mAnchorNode) {
|
||||
if (top->mDOMIter.Seek(mAnchorNode)) {
|
||||
mAnchorNode = parent;
|
||||
return NextChild();
|
||||
}
|
||||
}
|
||||
|
||||
// XXX We really should never get here, it means we're trying to find an
|
||||
// accessible for a dom node where iterating over its parent's children
|
||||
|
Loading…
Reference in New Issue
Block a user