| Index: Source/core/editing/TextInsertionBaseCommand.cpp
|
| diff --git a/Source/core/editing/TextInsertionBaseCommand.cpp b/Source/core/editing/TextInsertionBaseCommand.cpp
|
| index 21e2b7df0db60403cccc46db1219da180c9b21b9..79f638d76037e03452a1e67014d0df54c72bf48c 100644
|
| --- a/Source/core/editing/TextInsertionBaseCommand.cpp
|
| +++ b/Source/core/editing/TextInsertionBaseCommand.cpp
|
| @@ -63,7 +63,7 @@ String dispatchBeforeTextInsertedEvent(const String& text, const VisibleSelectio
|
| if (Node* startNode = selectionForInsertion.start().containerNode()) {
|
| if (startNode->rootEditableElement()) {
|
| // Send BeforeTextInsertedEvent. The event handler will update text if necessary.
|
| - RefPtr<BeforeTextInsertedEvent> evt = BeforeTextInsertedEvent::create(text);
|
| + RefPtrWillBeRawPtr<BeforeTextInsertedEvent> evt = BeforeTextInsertedEvent::create(text);
|
| startNode->rootEditableElement()->dispatchEvent(evt, IGNORE_EXCEPTION);
|
| newText = evt->text();
|
| }
|
| @@ -77,7 +77,7 @@ bool canAppendNewLineFeedToSelection(const VisibleSelection& selection)
|
| if (!node)
|
| return false;
|
|
|
| - RefPtr<BeforeTextInsertedEvent> event = BeforeTextInsertedEvent::create(String("\n"));
|
| + RefPtrWillBeRawPtr<BeforeTextInsertedEvent> event = BeforeTextInsertedEvent::create(String("\n"));
|
| node->dispatchEvent(event, IGNORE_EXCEPTION);
|
| return event->text().length();
|
| }
|
|
|