Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(809)

Unified Diff: Source/core/dom/Node.cpp

Issue 24278008: [oilpan] Handlify Nodes in htmlediting (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
}

Powered by Google App Engine
This is Rietveld 408576698