Index: Source/core/editing/InsertTextCommand.cpp |
diff --git a/Source/core/editing/InsertTextCommand.cpp b/Source/core/editing/InsertTextCommand.cpp |
index 5d3d91513ab86deac1993a282b216d92dea1cce3..581d807e2ebd3e3a28ba1732c43742a17da0a55b 100644 |
--- a/Source/core/editing/InsertTextCommand.cpp |
+++ b/Source/core/editing/InsertTextCommand.cpp |
@@ -48,7 +48,7 @@ Position InsertTextCommand::positionInsideTextNode(const Position& p) |
{ |
Position pos = p; |
if (isTabSpanTextNode(pos.anchorNode())) { |
- RefPtr<Node> textNode = document().createEditingTextNode(""); |
+ RefPtrWillBeRawPtr<Node> textNode = document().createEditingTextNode(""); |
insertNodeAtTabSpanPosition(textNode.get(), pos); |
return firstPositionInNode(textNode.get()); |
} |
@@ -56,7 +56,7 @@ Position InsertTextCommand::positionInsideTextNode(const Position& p) |
// Prepare for text input by looking at the specified position. |
// It may be necessary to insert a text node to receive characters. |
if (!pos.containerNode()->isTextNode()) { |
- RefPtr<Node> textNode = document().createEditingTextNode(""); |
+ RefPtrWillBeRawPtr<Node> textNode = document().createEditingTextNode(""); |
insertNodeAt(textNode.get(), pos); |
return firstPositionInNode(textNode.get()); |
} |
@@ -216,7 +216,7 @@ void InsertTextCommand::doApply() |
setEndingSelectionWithoutValidation(startPosition, endPosition); |
// Handle the case where there is a typing style. |
- if (RefPtr<EditingStyle> typingStyle = document().frame()->selection().typingStyle()) { |
+ if (RefPtrWillBeRawPtr<EditingStyle> typingStyle = document().frame()->selection().typingStyle()) { |
typingStyle->prepareToApplyAt(endPosition, EditingStyle::PreserveWritingDirection); |
if (!typingStyle->isEmpty()) |
applyStyle(typingStyle.get()); |