Index: Source/platform/mac/ScrollAnimatorMac.mm |
diff --git a/Source/platform/mac/ScrollAnimatorMac.mm b/Source/platform/mac/ScrollAnimatorMac.mm |
index ce0f160f1a1ebf6178c0ba888284f6af3d11ca8e..8390193623d3e4d20b35ce147fc37b0dc023cae4 100644 |
--- a/Source/platform/mac/ScrollAnimatorMac.mm |
+++ b/Source/platform/mac/ScrollAnimatorMac.mm |
@@ -41,7 +41,7 @@ |
#include "platform/scroll/ScrollbarThemeMacCommon.h" |
#include "platform/scroll/ScrollbarThemeMacOverlayAPI.h" |
#include "wtf/MainThread.h" |
-#include "wtf/PassOwnPtr.h" |
+#include "wtf/PassRefPtr.h" |
using namespace blink; |
@@ -654,9 +654,9 @@ private: |
namespace blink { |
-PassOwnPtr<ScrollAnimator> ScrollAnimator::create(ScrollableArea* scrollableArea) |
+PassRefPtr<ScrollAnimator> ScrollAnimator::create(ScrollableArea* scrollableArea) |
{ |
- return adoptPtr(new ScrollAnimatorMac(scrollableArea)); |
+ return adoptRef(new ScrollAnimatorMac(scrollableArea)); |
} |
ScrollAnimatorMac::ScrollAnimatorMac(ScrollableArea* scrollableArea) |