Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(637)

Unified Diff: Source/core/events/KeyboardEvent.h

Issue 185393006: Revert "Add [WillBeGarbageCollected] to Event.idl" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/events/KeyboardEvent.h
diff --git a/Source/core/events/KeyboardEvent.h b/Source/core/events/KeyboardEvent.h
index 5bf8c15bd167e18acbe06603f13a1be8ae4cffe8..d8b784f41445977259d03dcde87ecb9ee1b30a50 100644
--- a/Source/core/events/KeyboardEvent.h
+++ b/Source/core/events/KeyboardEvent.h
@@ -54,26 +54,26 @@ public:
DOM_KEY_LOCATION_NUMPAD = 0x03
};
- static PassRefPtrWillBeRawPtr<KeyboardEvent> create()
+ static PassRefPtr<KeyboardEvent> create()
{
- return adoptRefWillBeRefCountedGarbageCollected(new KeyboardEvent);
+ return adoptRef(new KeyboardEvent);
}
- static PassRefPtrWillBeRawPtr<KeyboardEvent> create(const PlatformKeyboardEvent& platformEvent, AbstractView* view)
+ static PassRefPtr<KeyboardEvent> create(const PlatformKeyboardEvent& platformEvent, AbstractView* view)
{
- return adoptRefWillBeRefCountedGarbageCollected(new KeyboardEvent(platformEvent, view));
+ return adoptRef(new KeyboardEvent(platformEvent, view));
}
- static PassRefPtrWillBeRawPtr<KeyboardEvent> create(const AtomicString& type, const KeyboardEventInit& initializer)
+ static PassRefPtr<KeyboardEvent> create(const AtomicString& type, const KeyboardEventInit& initializer)
{
- return adoptRefWillBeRefCountedGarbageCollected(new KeyboardEvent(type, initializer));
+ return adoptRef(new KeyboardEvent(type, initializer));
}
- static PassRefPtrWillBeRawPtr<KeyboardEvent> create(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view,
+ static PassRefPtr<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 adoptRefWillBeRefCountedGarbageCollected(new KeyboardEvent(type, canBubble, cancelable, view, keyIdentifier, location,
+ return adoptRef(new KeyboardEvent(type, canBubble, cancelable, view, keyIdentifier, location,
ctrlKey, altKey, shiftKey, metaKey, altGraphKey));
}

Powered by Google App Engine
This is Rietveld 408576698