diff options
Diffstat (limited to 'WebCore/dom/TreeWalker.cpp')
-rw-r--r-- | WebCore/dom/TreeWalker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/WebCore/dom/TreeWalker.cpp b/WebCore/dom/TreeWalker.cpp index 9c46fb3..6a8ca87 100644 --- a/WebCore/dom/TreeWalker.cpp +++ b/WebCore/dom/TreeWalker.cpp @@ -153,6 +153,7 @@ Node* TreeWalker::previousSibling(ScriptState* state) case NodeFilter::FILTER_SKIP: if (sibling->lastChild()) { sibling = sibling->lastChild(); + node = sibling; continue; } break; @@ -189,6 +190,7 @@ Node* TreeWalker::nextSibling(ScriptState* state) case NodeFilter::FILTER_SKIP: if (sibling->firstChild()) { sibling = sibling->firstChild(); + node = sibling; continue; } break; |