| 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);
|
| }
|
|
|