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
a2cfdd1d79
commit
a75d979c6e
@ -80,11 +80,9 @@ TreeWalker::NextChild()
|
|||||||
|
|
||||||
nsIContent* parent = parentNode->AsElement();
|
nsIContent* parent = parentNode->AsElement();
|
||||||
top = PushState(parent);
|
top = PushState(parent);
|
||||||
while (nsIContent* childNode = Next(top)) {
|
if (top->mDOMIter.Seek(mAnchorNode)) {
|
||||||
if (childNode == mAnchorNode) {
|
mAnchorNode = parent;
|
||||||
mAnchorNode = parent;
|
return NextChild();
|
||||||
return NextChild();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX We really should never get here, it means we're trying to find an
|
// XXX We really should never get here, it means we're trying to find an
|
||||||
|
Loading…
Reference in New Issue
Block a user