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