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

Unified Diff: Source/core/events/WheelEvent.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/WheelEvent.h
diff --git a/Source/core/events/WheelEvent.h b/Source/core/events/WheelEvent.h
index bb73134fd0c6f5d81d41c58cc02ecc65ead41974..080c256c1e5bde24db6406d5423a9647b111782d 100644
--- a/Source/core/events/WheelEvent.h
+++ b/Source/core/events/WheelEvent.h
@@ -54,22 +54,22 @@ public:
DOM_DELTA_PAGE
};
- static PassRefPtrWillBeRawPtr<WheelEvent> create()
+ static PassRefPtr<WheelEvent> create()
{
- return adoptRefWillBeRefCountedGarbageCollected(new WheelEvent);
+ return adoptRef(new WheelEvent);
}
- static PassRefPtrWillBeRawPtr<WheelEvent> create(const AtomicString& type, const WheelEventInit& initializer)
+ static PassRefPtr<WheelEvent> create(const AtomicString& type, const WheelEventInit& initializer)
{
- return adoptRefWillBeRefCountedGarbageCollected(new WheelEvent(type, initializer));
+ return adoptRef(new WheelEvent(type, initializer));
}
- static PassRefPtrWillBeRawPtr<WheelEvent> create(const FloatPoint& wheelTicks,
+ static PassRefPtr<WheelEvent> create(const FloatPoint& wheelTicks,
const FloatPoint& rawDelta, unsigned deltaMode, PassRefPtr<AbstractView> view,
const IntPoint& screenLocation, const IntPoint& pageLocation,
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool directionInvertedFromDevice)
{
- return adoptRefWillBeRefCountedGarbageCollected(new WheelEvent(wheelTicks, rawDelta, deltaMode, view,
+ return adoptRef(new WheelEvent(wheelTicks, rawDelta, deltaMode, view,
screenLocation, pageLocation, ctrlKey, altKey, shiftKey, metaKey, directionInvertedFromDevice));
}

Powered by Google App Engine
This is Rietveld 408576698