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

Unified Diff: Source/core/events/FocusEvent.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/FocusEvent.h
diff --git a/Source/core/events/FocusEvent.h b/Source/core/events/FocusEvent.h
index ab1f25c65b116bf59d84a5f8f924409fd4ef4106..fd66f186ec78a96005a68975858db3f7a94e0436 100644
--- a/Source/core/events/FocusEvent.h
+++ b/Source/core/events/FocusEvent.h
@@ -41,19 +41,19 @@ struct FocusEventInit : public UIEventInit {
class FocusEvent FINAL : public UIEvent {
public:
- static PassRefPtrWillBeRawPtr<FocusEvent> create()
+ static PassRefPtr<FocusEvent> create()
{
- return adoptRefWillBeRefCountedGarbageCollected(new FocusEvent);
+ return adoptRef(new FocusEvent);
}
- static PassRefPtrWillBeRawPtr<FocusEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView> view, int detail, EventTarget* relatedTarget)
+ static PassRefPtr<FocusEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView> view, int detail, EventTarget* relatedTarget)
{
- return adoptRefWillBeRefCountedGarbageCollected(new FocusEvent(type, canBubble, cancelable, view, detail, relatedTarget));
+ return adoptRef(new FocusEvent(type, canBubble, cancelable, view, detail, relatedTarget));
}
- static PassRefPtrWillBeRawPtr<FocusEvent> create(const AtomicString& type, const FocusEventInit& initializer)
+ static PassRefPtr<FocusEvent> create(const AtomicString& type, const FocusEventInit& initializer)
{
- return adoptRefWillBeRefCountedGarbageCollected(new FocusEvent(type, initializer));
+ return adoptRef(new FocusEvent(type, initializer));
}
EventTarget* relatedTarget() const { return m_relatedTarget.get(); }

Powered by Google App Engine
This is Rietveld 408576698