| Index: Source/core/dom/Node.cpp
|
| diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
|
| index be2804d26aea633ec3565f51da61198adaad2a13..ff324cade136db37d77f41d6dc2ceb4a42859822 100644
|
| --- a/Source/core/dom/Node.cpp
|
| +++ b/Source/core/dom/Node.cpp
|
| @@ -1143,7 +1143,7 @@ Node* Node::previousNodeConsideringAtomicNodes() const
|
| {
|
| if (previousSibling()) {
|
| Handle<Node> n = previousSibling();
|
| - while (!isAtomicNode(n.raw()) && n->lastChild()) {
|
| + while (!isAtomicNode(n) && n->lastChild()) {
|
| HandleScope scope;
|
| n = n->lastChild();
|
| }
|
| @@ -1159,7 +1159,7 @@ Node* Node::previousNodeConsideringAtomicNodes() const
|
|
|
| Node* Node::nextNodeConsideringAtomicNodes() const
|
| {
|
| - if (!isAtomicNode(this) && firstChild())
|
| + if (!isAtomicNode(selfHandle()) && firstChild())
|
| return firstChild().handle().raw();
|
| if (nextSibling())
|
| return nextSibling().handle().raw();
|
| @@ -1178,7 +1178,7 @@ Result<Node> Node::previousLeafNode() const
|
| Handle<Node> node = adoptRawResult(previousNodeConsideringAtomicNodes());
|
| while (node) {
|
| HandleScope scope;
|
| - if (isAtomicNode(node.raw()))
|
| + if (isAtomicNode(node))
|
| return node;
|
| node = adoptRawResult(node->previousNodeConsideringAtomicNodes());
|
| }
|
| @@ -1190,7 +1190,7 @@ Result<Node> Node::nextLeafNode() const
|
| Handle<Node> node = adoptRawResult(nextNodeConsideringAtomicNodes());
|
| while (node) {
|
| HandleScope scope;
|
| - if (isAtomicNode(node.raw()))
|
| + if (isAtomicNode(node))
|
| return node;
|
| node = adoptRawResult(node->nextNodeConsideringAtomicNodes());
|
| }
|
|
|