Index: Source/core/events/TextEvent.cpp |
diff --git a/Source/core/events/TextEvent.cpp b/Source/core/events/TextEvent.cpp |
index 1347c64cd15135367d076dd7bf16a92f4d4085dd..4ed62285e3004df6d05e0c5654a936f3d7d1d4ac 100644 |
--- a/Source/core/events/TextEvent.cpp |
+++ b/Source/core/events/TextEvent.cpp |
@@ -31,14 +31,14 @@ |
namespace WebCore { |
-PassRefPtr<TextEvent> TextEvent::create() |
+PassRefPtrWillBeRawPtr<TextEvent> TextEvent::create() |
{ |
- return adoptRef(new TextEvent); |
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new TextEvent); |
} |
-PassRefPtr<TextEvent> TextEvent::create(PassRefPtr<AbstractView> view, const String& data, TextEventInputType inputType) |
+PassRefPtrWillBeRawPtr<TextEvent> TextEvent::create(PassRefPtr<AbstractView> view, const String& data, TextEventInputType inputType) |
{ |
- return adoptRef(new TextEvent(view, data, inputType)); |
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new TextEvent(view, data, inputType)); |
} |
PassRefPtr<TextEvent> TextEvent::createForPlainTextPaste(PassRefPtr<AbstractView> view, const String& data, bool shouldSmartReplace) |