Title: [230695] trunk/Source/WebCore
- Revision
- 230695
- Author
- fpi...@apple.com
- Date
- 2018-04-16 18:56:15 -0700 (Mon, 16 Apr 2018)
Log Message
MutationObserver should be in an IsoHeap
https://bugs.webkit.org/show_bug.cgi?id=184671
<rdar://problem/36081981>
Reviewed by Sam Weinig.
No new tests because no new behavior.
* dom/MutationObserver.cpp:
* dom/MutationObserver.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (230694 => 230695)
--- trunk/Source/WebCore/ChangeLog 2018-04-17 01:20:43 UTC (rev 230694)
+++ trunk/Source/WebCore/ChangeLog 2018-04-17 01:56:15 UTC (rev 230695)
@@ -1,3 +1,16 @@
+2018-04-16 Filip Pizlo <fpi...@apple.com>
+
+ MutationObserver should be in an IsoHeap
+ https://bugs.webkit.org/show_bug.cgi?id=184671
+ <rdar://problem/36081981>
+
+ Reviewed by Sam Weinig.
+
+ No new tests because no new behavior.
+
+ * dom/MutationObserver.cpp:
+ * dom/MutationObserver.h:
+
2018-04-16 Youenn Fablet <you...@apple.com>
Use NetworkLoadChecker to handle synchronous HTTP loads
Modified: trunk/Source/WebCore/dom/MutationObserver.cpp (230694 => 230695)
--- trunk/Source/WebCore/dom/MutationObserver.cpp 2018-04-17 01:20:43 UTC (rev 230694)
+++ trunk/Source/WebCore/dom/MutationObserver.cpp 2018-04-17 01:56:15 UTC (rev 230695)
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2018 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -39,11 +40,14 @@
#include "MutationObserverRegistration.h"
#include "MutationRecord.h"
#include <algorithm>
+#include <wtf/IsoMallocInlines.h>
#include <wtf/MainThread.h>
#include <wtf/NeverDestroyed.h>
namespace WebCore {
+WTF_MAKE_ISO_ALLOCATED_IMPL(MutationObserver);
+
static unsigned s_observerPriority = 0;
Ref<MutationObserver> MutationObserver::create(Ref<MutationCallback>&& callback)
Modified: trunk/Source/WebCore/dom/MutationObserver.h (230694 => 230695)
--- trunk/Source/WebCore/dom/MutationObserver.h 2018-04-17 01:20:43 UTC (rev 230694)
+++ trunk/Source/WebCore/dom/MutationObserver.h 2018-04-17 01:56:15 UTC (rev 230695)
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2018 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -33,6 +34,7 @@
#include "ExceptionOr.h"
#include <wtf/Forward.h>
#include <wtf/HashSet.h>
+#include <wtf/IsoMalloc.h>
#include <wtf/Vector.h>
namespace WebCore {
@@ -46,7 +48,8 @@
using MutationObserverOptions = unsigned char;
using MutationRecordDeliveryOptions = unsigned char;
-class MutationObserver : public RefCounted<MutationObserver> {
+class MutationObserver final : public RefCounted<MutationObserver> {
+ WTF_MAKE_ISO_ALLOCATED(MutationObserver);
friend class MutationObserverMicrotask;
public:
enum MutationType {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes