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

Unified Diff: Source/core/rendering/RenderObject.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/rendering/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index bbcdbf45f73098808310e4c07da8580fd006049f..f3c13f3a57bfb48e523afec227a9cb9a08513c10 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -3029,7 +3029,7 @@ VisiblePosition RenderObject::createVisiblePosition(int offset, EAffinity affini
while ((renderer = renderer->nextInPreOrder(parent))) {
HandleScope scope;
if (Handle<Node> node = renderer->nonPseudoNode())
- return VisiblePosition(firstPositionInOrBeforeNode(node.raw()), DOWNSTREAM);
+ return VisiblePosition(firstPositionInOrBeforeNode(node), DOWNSTREAM);
}
// Find non-anonymous content before.
@@ -3039,12 +3039,12 @@ VisiblePosition RenderObject::createVisiblePosition(int offset, EAffinity affini
if (renderer == parent)
break;
if (Handle<Node> node = renderer->nonPseudoNode())
- return VisiblePosition(lastPositionInOrAfterNode(node.raw()), DOWNSTREAM);
+ return VisiblePosition(lastPositionInOrAfterNode(node), DOWNSTREAM);
}
// Use the parent itself unless it too is anonymous.
if (Handle<Node> node = parent->nonPseudoNode())
- return VisiblePosition(firstPositionInOrBeforeNode(node.raw()), DOWNSTREAM);
+ return VisiblePosition(firstPositionInOrBeforeNode(node), DOWNSTREAM);
// Repeat at the next level up.
child = parent;
« Source/core/editing/ReplaceSelectionCommand.cpp ('K') | « Source/core/rendering/RenderBox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698