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

Unified Diff: Source/bindings/v8/V8MutationCallback.h

Issue 85263006: Make IDL Callbacks non-refcounted by default (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 1 month 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
« no previous file with comments | « Source/bindings/v8/V8Callback.h ('k') | Source/bindings/v8/custom/V8GeolocationCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8MutationCallback.h
diff --git a/Source/bindings/v8/V8MutationCallback.h b/Source/bindings/v8/V8MutationCallback.h
index ad225c9cc60140319b7064635fc438eb78d00296..4ff7647b0b4e611d0ebf7dbd814dd38a3244fd29 100644
--- a/Source/bindings/v8/V8MutationCallback.h
+++ b/Source/bindings/v8/V8MutationCallback.h
@@ -31,8 +31,9 @@
#include "bindings/v8/ScopedPersistent.h"
#include "bindings/v8/V8Utilities.h"
#include "core/dom/MutationCallback.h"
-#include <v8.h>
+#include "wtf/OwnPtr.h"
#include "wtf/RefPtr.h"
+#include <v8.h>
namespace WebCore {
@@ -40,10 +41,10 @@ class ExecutionContext;
class V8MutationCallback : public MutationCallback, public ActiveDOMCallback {
public:
- static PassRefPtr<V8MutationCallback> create(v8::Handle<v8::Function> callback, ExecutionContext* context, v8::Handle<v8::Object> owner, v8::Isolate* isolate)
+ static PassOwnPtr<V8MutationCallback> create(v8::Handle<v8::Function> callback, ExecutionContext* context, v8::Handle<v8::Object> owner, v8::Isolate* isolate)
{
ASSERT(context);
- return adoptRef(new V8MutationCallback(callback, context, owner, isolate));
+ return adoptPtr(new V8MutationCallback(callback, context, owner, isolate));
}
virtual void call(const Vector<RefPtr<MutationRecord> >&, MutationObserver*) OVERRIDE;
« no previous file with comments | « Source/bindings/v8/V8Callback.h ('k') | Source/bindings/v8/custom/V8GeolocationCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698