Index: Source/core/events/KeyboardEvent.h |
diff --git a/Source/core/events/KeyboardEvent.h b/Source/core/events/KeyboardEvent.h |
index d8b784f41445977259d03dcde87ecb9ee1b30a50..5bf8c15bd167e18acbe06603f13a1be8ae4cffe8 100644 |
--- a/Source/core/events/KeyboardEvent.h |
+++ b/Source/core/events/KeyboardEvent.h |
@@ -54,26 +54,26 @@ public: |
DOM_KEY_LOCATION_NUMPAD = 0x03 |
}; |
- static PassRefPtr<KeyboardEvent> create() |
+ static PassRefPtrWillBeRawPtr<KeyboardEvent> create() |
{ |
- return adoptRef(new KeyboardEvent); |
+ return adoptRefWillBeRefCountedGarbageCollected(new KeyboardEvent); |
} |
- static PassRefPtr<KeyboardEvent> create(const PlatformKeyboardEvent& platformEvent, AbstractView* view) |
+ static PassRefPtrWillBeRawPtr<KeyboardEvent> create(const PlatformKeyboardEvent& platformEvent, AbstractView* view) |
{ |
- return adoptRef(new KeyboardEvent(platformEvent, view)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new KeyboardEvent(platformEvent, view)); |
} |
- static PassRefPtr<KeyboardEvent> create(const AtomicString& type, const KeyboardEventInit& initializer) |
+ static PassRefPtrWillBeRawPtr<KeyboardEvent> create(const AtomicString& type, const KeyboardEventInit& initializer) |
{ |
- return adoptRef(new KeyboardEvent(type, initializer)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new KeyboardEvent(type, initializer)); |
} |
- static PassRefPtr<KeyboardEvent> create(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view, |
+ static PassRefPtrWillBeRawPtr<KeyboardEvent> create(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view, |
const String& keyIdentifier, unsigned location, |
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey) |
{ |
- return adoptRef(new KeyboardEvent(type, canBubble, cancelable, view, keyIdentifier, location, |
+ return adoptRefWillBeRefCountedGarbageCollected(new KeyboardEvent(type, canBubble, cancelable, view, keyIdentifier, location, |
ctrlKey, altKey, shiftKey, metaKey, altGraphKey)); |
} |