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

Unified Diff: Source/core/editing/InsertTextCommand.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/editing/InsertTextCommand.cpp
diff --git a/Source/core/editing/InsertTextCommand.cpp b/Source/core/editing/InsertTextCommand.cpp
index b079bedc289453cc70d3e83132aa91a0c3e0997f..5adbf48218441a5363676f7b81cb44303782abfc 100644
--- a/Source/core/editing/InsertTextCommand.cpp
+++ b/Source/core/editing/InsertTextCommand.cpp
@@ -58,7 +58,7 @@ InsertTextCommand::InsertTextCommand(const Handle<Document>& document, const Str
Position InsertTextCommand::positionInsideTextNode(const Position& p)
{
Position pos = p;
- if (isTabSpanTextNode(pos.anchorNode().handle().raw())) {
+ if (isTabSpanTextNode(pos.anchorNode())) {
Handle<Node> textNode = document()->createEditingTextNode("");
insertNodeAtTabSpanPosition(textNode, pos);
return firstPositionInNode(textNode);
@@ -241,8 +241,8 @@ Position InsertTextCommand::insertTab(const Position& pos)
unsigned int offset = node->isTextNode() ? insertPos.offsetInContainerNode() : 0;
// keep tabs coalesced in tab span
- if (isTabSpanTextNode(node.raw())) {
- Handle<Text> textNode = toText(node.raw());
+ if (isTabSpanTextNode(node)) {
+ Handle<Text> textNode = toText(node);
insertTextIntoNode(textNode, offset, "\t");
return Position(textNode, offset + 1);
}

Powered by Google App Engine
This is Rietveld 408576698