summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/MutationCallback.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/MutationCallback.h')
-rw-r--r--Source/WebCore/dom/MutationCallback.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/WebCore/dom/MutationCallback.h b/Source/WebCore/dom/MutationCallback.h
index e698a59c3..4658c1929 100644
--- a/Source/WebCore/dom/MutationCallback.h
+++ b/Source/WebCore/dom/MutationCallback.h
@@ -28,8 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef MutationCallback_h
-#define MutationCallback_h
+#pragma once
#include <wtf/RefCounted.h>
#include <wtf/RefPtr.h>
@@ -44,10 +43,8 @@ class MutationCallback : public RefCounted<MutationCallback> {
public:
virtual ~MutationCallback() { }
- virtual void call(const Vector<RefPtr<MutationRecord>>&, MutationObserver*) = 0;
- virtual ScriptExecutionContext* scriptExecutionContext() const = 0;
+ virtual void call(const Vector<Ref<MutationRecord>>&, MutationObserver*) = 0;
+ virtual bool canInvokeCallback() const = 0;
};
-}
-
-#endif // MutationCallback_h
+} // namespace WebCore