| Index: third_party/WebKit/Source/core/editing/commands/TextInsertionBaseCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/TextInsertionBaseCommand.cpp b/third_party/WebKit/Source/core/editing/commands/TextInsertionBaseCommand.cpp
|
| index 25b37f0bef445b3562348aa6399aab05c520f6e0..f712f849b01495bbfa0bb5727f23133af3a0eaaa 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/TextInsertionBaseCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/TextInsertionBaseCommand.cpp
|
| @@ -39,7 +39,7 @@ TextInsertionBaseCommand::TextInsertionBaseCommand(Document& document)
|
| {
|
| }
|
|
|
| -void TextInsertionBaseCommand::applyTextInsertionCommand(LocalFrame* frame, PassRefPtrWillBeRawPtr<TextInsertionBaseCommand> command, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection)
|
| +void TextInsertionBaseCommand::applyTextInsertionCommand(LocalFrame* frame, RawPtr<TextInsertionBaseCommand> command, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection)
|
| {
|
| bool changeSelection = !equalSelectionsInDOMTree(selectionForInsertion, endingSelection);
|
| if (changeSelection) {
|
| @@ -62,7 +62,7 @@ String dispatchBeforeTextInsertedEvent(const String& text, const VisibleSelectio
|
| if (Node* startNode = selectionForInsertion.start().computeContainerNode()) {
|
| if (startNode->rootEditableElement()) {
|
| // Send BeforeTextInsertedEvent. The event handler will update text if necessary.
|
| - RefPtrWillBeRawPtr<BeforeTextInsertedEvent> evt = BeforeTextInsertedEvent::create(text);
|
| + RawPtr<BeforeTextInsertedEvent> evt = BeforeTextInsertedEvent::create(text);
|
| startNode->rootEditableElement()->dispatchEvent(evt);
|
| newText = evt->text();
|
| }
|
| @@ -76,7 +76,7 @@ bool canAppendNewLineFeedToSelection(const VisibleSelection& selection)
|
| if (!element)
|
| return false;
|
|
|
| - RefPtrWillBeRawPtr<BeforeTextInsertedEvent> event = BeforeTextInsertedEvent::create(String("\n"));
|
| + RawPtr<BeforeTextInsertedEvent> event = BeforeTextInsertedEvent::create(String("\n"));
|
| element->dispatchEvent(event);
|
| return event->text().length();
|
| }
|
|
|