diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/bindings/js/JSMutationCallback.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/bindings/js/JSMutationCallback.h')
-rw-r--r-- | Source/WebCore/bindings/js/JSMutationCallback.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Source/WebCore/bindings/js/JSMutationCallback.h b/Source/WebCore/bindings/js/JSMutationCallback.h index d7bd8483b..427d6243a 100644 --- a/Source/WebCore/bindings/js/JSMutationCallback.h +++ b/Source/WebCore/bindings/js/JSMutationCallback.h @@ -23,8 +23,7 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef JSMutationCallback_h -#define JSMutationCallback_h +#pragma once #include "ActiveDOMCallback.h" #include "DOMWrapperWorld.h" @@ -37,18 +36,17 @@ namespace WebCore { class JSDOMGlobalObject; -class JSMutationCallback : public MutationCallback, public ActiveDOMCallback { +class JSMutationCallback final : public MutationCallback, public ActiveDOMCallback { public: - static PassRefPtr<JSMutationCallback> create(JSC::JSObject* callback, JSDOMGlobalObject* globalObject) + static Ref<JSMutationCallback> create(JSC::JSObject* callback, JSDOMGlobalObject* globalObject) { - return adoptRef(new JSMutationCallback(callback, globalObject)); + return adoptRef(*new JSMutationCallback(callback, globalObject)); } virtual ~JSMutationCallback(); - virtual void call(const Vector<RefPtr<MutationRecord>>&, MutationObserver*) override; - - virtual ScriptExecutionContext* scriptExecutionContext() const override { return ContextDestructionObserver::scriptExecutionContext(); } + void call(const Vector<Ref<MutationRecord>>&, MutationObserver*) override; + bool canInvokeCallback() const override { return ActiveDOMCallback::canInvokeCallback(); } private: JSMutationCallback(JSC::JSObject* callback, JSDOMGlobalObject*); @@ -58,5 +56,3 @@ private: }; } // namespace WebCore - -#endif |