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

Unified Diff: Source/platform/scroll/ScrollAnimator.h

Issue 603193005: Move the Widget hierarchy to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch LocalFrame::m_pluginElements rep to HashSet<HTMLPlugInElement*> Created 6 years, 2 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/platform/scroll/ScrollAnimator.h
diff --git a/Source/platform/scroll/ScrollAnimator.h b/Source/platform/scroll/ScrollAnimator.h
index dd8c77d121a91131f92c59f8b792f1381874d631..2242772e1c8d7d1bfa4ce4de566a4c4e59ca6676 100644
--- a/Source/platform/scroll/ScrollAnimator.h
+++ b/Source/platform/scroll/ScrollAnimator.h
@@ -35,9 +35,8 @@
#include "platform/PlatformWheelEvent.h"
#include "platform/geometry/FloatSize.h"
#include "platform/scroll/ScrollTypes.h"
-#include "wtf/FastAllocBase.h"
#include "wtf/Forward.h"
-#include "wtf/Noncopyable.h"
+#include "wtf/RefCounted.h"
namespace blink {
@@ -45,10 +44,9 @@ class FloatPoint;
class ScrollableArea;
class Scrollbar;
-class PLATFORM_EXPORT ScrollAnimator {
- WTF_MAKE_FAST_ALLOCATED; WTF_MAKE_NONCOPYABLE(ScrollAnimator);
+class PLATFORM_EXPORT ScrollAnimator : public RefCounted<ScrollAnimator> {
public:
- static PassOwnPtr<ScrollAnimator> create(ScrollableArea*);
+ static PassRefPtr<ScrollAnimator> create(ScrollableArea*);
virtual ~ScrollAnimator();

Powered by Google App Engine
This is Rietveld 408576698