WebKit Bugzilla
Attachment 371804 Details for
Bug 196656
: [WebCore] Put Event and derived classes into IsoHeap
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-196656-20190610184059.patch (text/plain), 120.29 KB, created by
Yusuke Suzuki
on 2019-06-10 18:41:00 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Yusuke Suzuki
Created:
2019-06-10 18:41:00 PDT
Size:
120.29 KB
patch
obsolete
>Subversion Revision: 246292 >diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog >index 0c8b145e5dab85ae9ff30a1b332c9e27bc203d89..65f7d360d32c0383680c3b438f510752a6ea4e2d 100644 >--- a/Source/WebCore/ChangeLog >+++ b/Source/WebCore/ChangeLog >@@ -1,3 +1,206 @@ >+2019-06-10 Yusuke Suzuki <ysuzuki@apple.com> >+ >+ [WebCore] Put Event and derived classes into IsoHeap >+ https://bugs.webkit.org/show_bug.cgi?id=196656 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ No new tests (OOPS!). >+ >+ * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp: >+ * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h: >+ (WebCore::WebKitPlaybackTargetAvailabilityEvent::create): Deleted. >+ (WebCore::WebKitPlaybackTargetAvailabilityEvent::availability const): Deleted. >+ * Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp: >+ * Modules/applepay/ApplePayPaymentAuthorizedEvent.h: >+ * Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp: >+ * Modules/applepay/ApplePayPaymentMethodSelectedEvent.h: >+ (WebCore::ApplePayPaymentMethodSelectedEvent::create): Deleted. >+ (WebCore::ApplePayPaymentMethodSelectedEvent::paymentMethod): Deleted. >+ * Modules/applepay/ApplePayShippingContactSelectedEvent.cpp: >+ * Modules/applepay/ApplePayShippingContactSelectedEvent.h: >+ * Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp: >+ * Modules/applepay/ApplePayShippingMethodSelectedEvent.h: >+ * Modules/applepay/ApplePayValidateMerchantEvent.cpp: >+ * Modules/applepay/ApplePayValidateMerchantEvent.h: >+ (WebCore::ApplePayValidateMerchantEvent::create): Deleted. >+ (WebCore::ApplePayValidateMerchantEvent::validationURL const): Deleted. >+ * Modules/encryptedmedia/MediaKeyMessageEvent.cpp: >+ * Modules/encryptedmedia/MediaKeyMessageEvent.h: >+ * Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.cpp: >+ * Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.h: >+ (WebCore::WebKitMediaKeyMessageEvent::create): Deleted. >+ (WebCore::WebKitMediaKeyMessageEvent::message const): Deleted. >+ (WebCore::WebKitMediaKeyMessageEvent::destinationURL const): Deleted. >+ * Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.cpp: >+ * Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.h: >+ (WebCore::WebKitMediaKeyNeededEvent::create): Deleted. >+ (WebCore::WebKitMediaKeyNeededEvent::initData const): Deleted. >+ * Modules/gamepad/GamepadEvent.cpp: >+ * Modules/gamepad/GamepadEvent.h: >+ (WebCore::GamepadEvent::create): Deleted. >+ (WebCore::GamepadEvent::gamepad const): Deleted. >+ * Modules/indexeddb/IDBRequestCompletionEvent.cpp: >+ * Modules/indexeddb/IDBRequestCompletionEvent.h: >+ (WebCore::IDBRequestCompletionEvent::create): Deleted. >+ * Modules/indexeddb/IDBVersionChangeEvent.cpp: >+ * Modules/indexeddb/IDBVersionChangeEvent.h: >+ * Modules/mediarecorder/BlobEvent.cpp: >+ * Modules/mediarecorder/BlobEvent.h: >+ * Modules/mediarecorder/MediaRecorderErrorEvent.cpp: >+ * Modules/mediarecorder/MediaRecorderErrorEvent.h: >+ * Modules/mediastream/MediaStreamTrackEvent.cpp: >+ * Modules/mediastream/MediaStreamTrackEvent.h: >+ * Modules/mediastream/OverconstrainedErrorEvent.cpp: Copied from Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h. >+ * Modules/mediastream/OverconstrainedErrorEvent.h: >+ (WebCore::OverconstrainedErrorEvent::create): Deleted. >+ (WebCore::OverconstrainedErrorEvent::error const): Deleted. >+ (WebCore::OverconstrainedErrorEvent::OverconstrainedErrorEvent): Deleted. >+ * Modules/mediastream/RTCDTMFToneChangeEvent.cpp: >+ * Modules/mediastream/RTCDTMFToneChangeEvent.h: >+ * Modules/mediastream/RTCDataChannelEvent.cpp: >+ * Modules/mediastream/RTCDataChannelEvent.h: >+ * Modules/mediastream/RTCPeerConnectionIceEvent.cpp: >+ * Modules/mediastream/RTCPeerConnectionIceEvent.h: >+ (WebCore::RTCPeerConnectionIceEvent::url const): Deleted. >+ * Modules/mediastream/RTCTrackEvent.cpp: >+ * Modules/mediastream/RTCTrackEvent.h: >+ (WebCore::RTCTrackEvent::receiver const): Deleted. >+ (WebCore::RTCTrackEvent::track const): Deleted. >+ (WebCore::RTCTrackEvent::streams const): Deleted. >+ (WebCore::RTCTrackEvent::transceiver const): Deleted. >+ (WebCore::RTCTrackEvent::eventInterface const): Deleted. >+ * Modules/paymentrequest/MerchantValidationEvent.cpp: >+ * Modules/paymentrequest/MerchantValidationEvent.h: >+ * Modules/paymentrequest/PaymentMethodChangeEvent.cpp: >+ * Modules/paymentrequest/PaymentMethodChangeEvent.h: >+ * Modules/paymentrequest/PaymentRequestUpdateEvent.cpp: >+ * Modules/paymentrequest/PaymentRequestUpdateEvent.h: >+ * Modules/speech/SpeechSynthesisEvent.cpp: >+ * Modules/speech/SpeechSynthesisEvent.h: >+ (WebCore::SpeechSynthesisEvent::charIndex const): Deleted. >+ (WebCore::SpeechSynthesisEvent::elapsedTime const): Deleted. >+ (WebCore::SpeechSynthesisEvent::name const): Deleted. >+ (WebCore::SpeechSynthesisEvent::eventInterface const): Deleted. >+ * Modules/webaudio/AudioProcessingEvent.cpp: >+ * Modules/webaudio/AudioProcessingEvent.h: >+ * Modules/webaudio/OfflineAudioCompletionEvent.cpp: >+ * Modules/webaudio/OfflineAudioCompletionEvent.h: >+ * Modules/websockets/CloseEvent.cpp: Copied from Source/WebCore/dom/BeforeTextInsertedEvent.cpp. >+ * Modules/websockets/CloseEvent.h: >+ (WebCore::CloseEvent::create): Deleted. >+ (WebCore::CloseEvent::wasClean const): Deleted. >+ (WebCore::CloseEvent::code const): Deleted. >+ (WebCore::CloseEvent::reason const): Deleted. >+ (WebCore::CloseEvent::CloseEvent): Deleted. >+ * Modules/webvr/VRDisplayEvent.cpp: >+ * Modules/webvr/VRDisplayEvent.h: >+ * Sources.txt: >+ * WebCore.xcodeproj/project.pbxproj: >+ * accessibility/AccessibleSetValueEvent.cpp: >+ * accessibility/AccessibleSetValueEvent.h: >+ (WebCore::AccessibleSetValueEvent::create): Deleted. >+ (WebCore::AccessibleSetValueEvent::value const): Deleted. >+ * animation/AnimationPlaybackEvent.cpp: >+ * animation/AnimationPlaybackEvent.h: >+ * bindings/js/ScriptWrappable.cpp: Copied from Source/WebCore/html/canvas/WebGLContextEvent.cpp. >+ * bindings/js/ScriptWrappable.h: >+ * dom/AnimationEvent.cpp: >+ * dom/AnimationEvent.h: >+ * dom/BeforeLoadEvent.cpp: Copied from Source/WebCore/dom/BeforeTextInsertedEvent.cpp. >+ * dom/BeforeLoadEvent.h: >+ * dom/BeforeTextInsertedEvent.cpp: >+ * dom/BeforeTextInsertedEvent.h: >+ * dom/BeforeUnloadEvent.cpp: >+ * dom/BeforeUnloadEvent.h: >+ * dom/ClipboardEvent.cpp: >+ * dom/ClipboardEvent.h: >+ * dom/CompositionEvent.cpp: >+ * dom/CompositionEvent.h: >+ * dom/CustomEvent.cpp: >+ * dom/CustomEvent.h: >+ * dom/DeviceMotionEvent.cpp: >+ * dom/DeviceMotionEvent.h: >+ * dom/DeviceOrientationEvent.cpp: >+ * dom/DeviceOrientationEvent.h: >+ * dom/ErrorEvent.cpp: >+ * dom/ErrorEvent.h: >+ * dom/Event.cpp: >+ * dom/Event.h: >+ * dom/FocusEvent.cpp: >+ * dom/FocusEvent.h: >+ * dom/HashChangeEvent.cpp: Copied from Source/WebCore/dom/BeforeTextInsertedEvent.cpp. >+ * dom/HashChangeEvent.h: >+ * dom/InputEvent.cpp: >+ * dom/InputEvent.h: >+ * dom/KeyboardEvent.cpp: >+ * dom/KeyboardEvent.h: >+ * dom/MessageEvent.cpp: >+ * dom/MessageEvent.h: >+ * dom/MouseEvent.cpp: >+ * dom/MouseEvent.h: >+ * dom/MouseRelatedEvent.cpp: >+ * dom/MouseRelatedEvent.h: >+ * dom/MutationEvent.cpp: >+ * dom/MutationEvent.h: >+ * dom/OverflowEvent.cpp: >+ * dom/OverflowEvent.h: >+ * dom/PageTransitionEvent.cpp: >+ * dom/PageTransitionEvent.h: >+ * dom/PointerEvent.cpp: >+ * dom/PointerEvent.h: >+ * dom/PopStateEvent.cpp: >+ * dom/PopStateEvent.h: >+ * dom/ProgressEvent.cpp: >+ * dom/ProgressEvent.h: >+ * dom/PromiseRejectionEvent.cpp: >+ * dom/PromiseRejectionEvent.h: >+ * dom/SecurityPolicyViolationEvent.cpp: Copied from Source/WebCore/dom/BeforeTextInsertedEvent.cpp. >+ * dom/SecurityPolicyViolationEvent.h: >+ * dom/TextEvent.cpp: >+ * dom/TextEvent.h: >+ * dom/TouchEvent.cpp: >+ * dom/TouchEvent.h: >+ * dom/TransitionEvent.cpp: >+ * dom/TransitionEvent.h: >+ * dom/UIEvent.cpp: >+ * dom/UIEvent.h: >+ * dom/UIEventWithKeyState.cpp: >+ * dom/UIEventWithKeyState.h: >+ * dom/WebKitAnimationEvent.cpp: >+ * dom/WebKitAnimationEvent.h: >+ * dom/WebKitTransitionEvent.cpp: >+ * dom/WebKitTransitionEvent.h: >+ * dom/WheelEvent.cpp: >+ * dom/WheelEvent.h: >+ * html/MediaEncryptedEvent.cpp: >+ * html/MediaEncryptedEvent.h: >+ * html/canvas/WebGLContextEvent.cpp: >+ * html/canvas/WebGLContextEvent.h: >+ * html/track/TrackEvent.cpp: >+ * html/track/TrackEvent.h: >+ * storage/StorageEvent.cpp: >+ * storage/StorageEvent.h: >+ (WebCore::StorageEvent::key const): Deleted. >+ (WebCore::StorageEvent::oldValue const): Deleted. >+ (WebCore::StorageEvent::newValue const): Deleted. >+ (WebCore::StorageEvent::url const): Deleted. >+ (WebCore::StorageEvent::storageArea const): Deleted. >+ * svg/SVGZoomEvent.cpp: >+ * svg/SVGZoomEvent.h: >+ * workers/service/ExtendableEvent.cpp: >+ * workers/service/ExtendableEvent.h: >+ * workers/service/ExtendableMessageEvent.cpp: >+ * workers/service/ExtendableMessageEvent.h: >+ * workers/service/FetchEvent.cpp: >+ * workers/service/FetchEvent.h: >+ * xml/XMLHttpRequestProgressEvent.cpp: Copied from Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.cpp. >+ * xml/XMLHttpRequestProgressEvent.h: >+ (WebCore::XMLHttpRequestProgressEvent::create): Deleted. >+ (WebCore::XMLHttpRequestProgressEvent::position const): Deleted. >+ (WebCore::XMLHttpRequestProgressEvent::totalSize const): Deleted. >+ (WebCore::XMLHttpRequestProgressEvent::XMLHttpRequestProgressEvent): Deleted. >+ > 2019-06-10 Basuke Suzuki <Basuke.Suzuki@sony.com> > > Web Inspector: DNS names in SymmaryInfo was wrong. >diff --git a/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp b/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp >index 2a3e09223e0c8d6328d1eeedb652512ca5b56608..e8b2480c1eebf366b0f76a8ec09fab0e8c4ea9df 100644 >--- a/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp >+++ b/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp >@@ -26,12 +26,15 @@ > #include "config.h" > #include "WebKitPlaybackTargetAvailabilityEvent.h" > >+#include <wtf/IsoMallocInlines.h> > #include <wtf/NeverDestroyed.h> > > #if ENABLE(WIRELESS_PLAYBACK_TARGET) > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(WebKitPlaybackTargetAvailabilityEvent); >+ > static const AtomicString& stringForPlaybackTargetAvailability(bool available) > { > static NeverDestroyed<AtomicString> availableString("available", AtomicString::ConstructFromLiteral); >diff --git a/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h b/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h >index 36cb6d1a3c06ce13e508f567a0720afa84f17d45..acf6d9b98fe18069fff2dd20a3b154255a563e44 100644 >--- a/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h >+++ b/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h >@@ -31,7 +31,8 @@ > > namespace WebCore { > >-class WebKitPlaybackTargetAvailabilityEvent : public Event { >+class WebKitPlaybackTargetAvailabilityEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(WebKitPlaybackTargetAvailabilityEvent); > public: > > static Ref<WebKitPlaybackTargetAvailabilityEvent> create(const AtomicString& eventType, bool available) >diff --git a/Source/WebCore/Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp b/Source/WebCore/Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp >index b797070000d3598f27bddfae77efe433a129d2ba..637f49bcf10cb816ea7b048cbe593cf874062081 100644 >--- a/Source/WebCore/Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp >+++ b/Source/WebCore/Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp >@@ -29,9 +29,12 @@ > #if ENABLE(APPLE_PAY) > > #include "Payment.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(ApplePayPaymentAuthorizedEvent); >+ > ApplePayPaymentAuthorizedEvent::ApplePayPaymentAuthorizedEvent(const AtomicString& type, unsigned version, const Payment& payment) > : Event(type, CanBubble::No, IsCancelable::No) > , m_payment(payment.toApplePayPayment(version)) >diff --git a/Source/WebCore/Modules/applepay/ApplePayPaymentAuthorizedEvent.h b/Source/WebCore/Modules/applepay/ApplePayPaymentAuthorizedEvent.h >index 2bc032dca5901524520ca9439657067082f7ab00..05f310a335759a118d3f5b7cc97d29c42f395d0f 100644 >--- a/Source/WebCore/Modules/applepay/ApplePayPaymentAuthorizedEvent.h >+++ b/Source/WebCore/Modules/applepay/ApplePayPaymentAuthorizedEvent.h >@@ -35,6 +35,7 @@ namespace WebCore { > class Payment; > > class ApplePayPaymentAuthorizedEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(ApplePayPaymentAuthorizedEvent); > public: > static Ref<ApplePayPaymentAuthorizedEvent> create(const AtomicString& type, unsigned version, const Payment& payment) > { >diff --git a/Source/WebCore/Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp b/Source/WebCore/Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp >index 8126e85cd8409f1e7f95f10fe75b264db960f7dc..edfa565931a3d2c94995d31643512cec48dde8de 100644 >--- a/Source/WebCore/Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp >+++ b/Source/WebCore/Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp >@@ -29,9 +29,12 @@ > #if ENABLE(APPLE_PAY) > > #include "PaymentMethod.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(ApplePayPaymentMethodSelectedEvent); >+ > ApplePayPaymentMethodSelectedEvent::ApplePayPaymentMethodSelectedEvent(const AtomicString& type, const PaymentMethod& paymentMethod) > : Event(type, CanBubble::No, IsCancelable::No) > , m_paymentMethod(paymentMethod.toApplePayPaymentMethod()) >diff --git a/Source/WebCore/Modules/applepay/ApplePayPaymentMethodSelectedEvent.h b/Source/WebCore/Modules/applepay/ApplePayPaymentMethodSelectedEvent.h >index 3ac1a3c41fc8d05f55b6c5e860a2733227049ce0..069a98e2b72e10af01a6cb64a079f760fa85c2f8 100644 >--- a/Source/WebCore/Modules/applepay/ApplePayPaymentMethodSelectedEvent.h >+++ b/Source/WebCore/Modules/applepay/ApplePayPaymentMethodSelectedEvent.h >@@ -34,7 +34,8 @@ namespace WebCore { > > class PaymentMethod; > >-class ApplePayPaymentMethodSelectedEvent : public Event { >+class ApplePayPaymentMethodSelectedEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(ApplePayPaymentMethodSelectedEvent); > public: > static Ref<ApplePayPaymentMethodSelectedEvent> create(const AtomicString& type, const PaymentMethod& paymentMethod) > { >diff --git a/Source/WebCore/Modules/applepay/ApplePayShippingContactSelectedEvent.cpp b/Source/WebCore/Modules/applepay/ApplePayShippingContactSelectedEvent.cpp >index eca02d7e43f7179ca72f101384224998f5e3b5c4..e60f750fedbcab9290741c31d1bd5ef75f65c355 100644 >--- a/Source/WebCore/Modules/applepay/ApplePayShippingContactSelectedEvent.cpp >+++ b/Source/WebCore/Modules/applepay/ApplePayShippingContactSelectedEvent.cpp >@@ -29,9 +29,12 @@ > #if ENABLE(APPLE_PAY) > > #include "PaymentContact.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(ApplePayShippingContactSelectedEvent); >+ > ApplePayShippingContactSelectedEvent::ApplePayShippingContactSelectedEvent(const AtomicString& type, unsigned version, const PaymentContact& shippingContact) > : Event(type, CanBubble::No, IsCancelable::No) > , m_shippingContact(shippingContact.toApplePayPaymentContact(version)) >diff --git a/Source/WebCore/Modules/applepay/ApplePayShippingContactSelectedEvent.h b/Source/WebCore/Modules/applepay/ApplePayShippingContactSelectedEvent.h >index 253efd9934d154af9bdc349bd11c5a11fb33e250..5eaca110390b43375f888299b78c43356a9edb54 100644 >--- a/Source/WebCore/Modules/applepay/ApplePayShippingContactSelectedEvent.h >+++ b/Source/WebCore/Modules/applepay/ApplePayShippingContactSelectedEvent.h >@@ -35,6 +35,7 @@ namespace WebCore { > class PaymentContact; > > class ApplePayShippingContactSelectedEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(ApplePayShippingContactSelectedEvent); > public: > static Ref<ApplePayShippingContactSelectedEvent> create(const AtomicString& type, unsigned version, const PaymentContact& shippingContact) > { >diff --git a/Source/WebCore/Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp b/Source/WebCore/Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp >index d6304b92da0dd3f49fcf7cb6ec47bb602ce85bb4..be7bba5ebd040c7e95859487f3709281a1e82ed1 100644 >--- a/Source/WebCore/Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp >+++ b/Source/WebCore/Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp >@@ -28,10 +28,13 @@ > > #if ENABLE(APPLE_PAY) > >+#include <wtf/IsoMallocInlines.h> > #include <wtf/text/StringBuilder.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(ApplePayShippingMethodSelectedEvent); >+ > static inline ApplePayShippingMethod convert(const ApplePaySessionPaymentRequest::ShippingMethod& shippingMethod) > { > ApplePayShippingMethod convertedMethod; >diff --git a/Source/WebCore/Modules/applepay/ApplePayShippingMethodSelectedEvent.h b/Source/WebCore/Modules/applepay/ApplePayShippingMethodSelectedEvent.h >index ec1c64eef2056cc21153bd6f257ba59f318b6b00..4393e16955b216d299f7e6cc2bb4b01b9c046ef8 100644 >--- a/Source/WebCore/Modules/applepay/ApplePayShippingMethodSelectedEvent.h >+++ b/Source/WebCore/Modules/applepay/ApplePayShippingMethodSelectedEvent.h >@@ -34,6 +34,7 @@ > namespace WebCore { > > class ApplePayShippingMethodSelectedEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(ApplePayShippingMethodSelectedEvent); > public: > static Ref<ApplePayShippingMethodSelectedEvent> create(const AtomicString& type, const ApplePaySessionPaymentRequest::ShippingMethod& shippingMethod) > { >diff --git a/Source/WebCore/Modules/applepay/ApplePayValidateMerchantEvent.cpp b/Source/WebCore/Modules/applepay/ApplePayValidateMerchantEvent.cpp >index b164b14b27fee86fc20dd5f1d8b90a2dc1ae93d5..672ab43fd03574b79f35e3e5c68f5e90528a5a58 100644 >--- a/Source/WebCore/Modules/applepay/ApplePayValidateMerchantEvent.cpp >+++ b/Source/WebCore/Modules/applepay/ApplePayValidateMerchantEvent.cpp >@@ -28,8 +28,12 @@ > > #if ENABLE(APPLE_PAY) > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(ApplePayValidateMerchantEvent); >+ > ApplePayValidateMerchantEvent::ApplePayValidateMerchantEvent(const AtomicString& type, URL&& validationURL) > : Event(type, CanBubble::No, IsCancelable::No) > , m_validationURL(WTFMove(validationURL)) >diff --git a/Source/WebCore/Modules/applepay/ApplePayValidateMerchantEvent.h b/Source/WebCore/Modules/applepay/ApplePayValidateMerchantEvent.h >index 3aa22f5b82d6c2c180ece814585d8510894b1b4f..013937dc6156ca25446e31e43a6322cb472111a2 100644 >--- a/Source/WebCore/Modules/applepay/ApplePayValidateMerchantEvent.h >+++ b/Source/WebCore/Modules/applepay/ApplePayValidateMerchantEvent.h >@@ -32,7 +32,8 @@ > > namespace WebCore { > >-class ApplePayValidateMerchantEvent : public Event { >+class ApplePayValidateMerchantEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(ApplePayValidateMerchantEvent); > public: > static Ref<ApplePayValidateMerchantEvent> create(const AtomicString& type, URL&& validationURL) > { >diff --git a/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.cpp b/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.cpp >index 2b39ec4bfeb43881aa8aa522909bbf5e09f96ebd..6907f636b318a8cb61d38212e9d77af0f7877282 100644 >--- a/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.cpp >+++ b/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.cpp >@@ -31,8 +31,12 @@ > > #if ENABLE(ENCRYPTED_MEDIA) > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(MediaKeyMessageEvent); >+ > MediaKeyMessageEvent::MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEvent::Init& initializer, IsTrusted isTrusted) > : Event(type, initializer, isTrusted) > , m_messageType(initializer.messageType) >diff --git a/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h b/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h >index 51932217a9f48ac2b2b2de7512b161c9e77ffe9a..5e0e4e6ee23c3074d12dac26007ac15d6fd96265 100644 >--- a/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h >+++ b/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h >@@ -38,6 +38,7 @@ > namespace WebCore { > > class MediaKeyMessageEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(MediaKeyMessageEvent); > public: > using Type = MediaKeyMessageType; > using Init = MediaKeyMessageEventInit; >diff --git a/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.cpp b/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.cpp >index 84113f58298202379ecc6fd64bd8e5dabf593aca..52ede28d168aa8864e15d4465a31e0990aaf42a4 100644 >--- a/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.cpp >+++ b/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.cpp >@@ -29,9 +29,12 @@ > #if ENABLE(LEGACY_ENCRYPTED_MEDIA) > > #include <JavaScriptCore/Uint8Array.h> >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(WebKitMediaKeyMessageEvent); >+ > WebKitMediaKeyMessageEvent::WebKitMediaKeyMessageEvent(const AtomicString& type, Uint8Array* message, const String& destinationURL) > : Event(type, CanBubble::No, IsCancelable::No) > , m_message(message) >diff --git a/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.h b/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.h >index 51946f213ed34c80f18ea0bcfd3ea44dcb855d0f..30e5d222e9abaa968aaeb45784a640aa40362e33 100644 >--- a/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.h >+++ b/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.h >@@ -33,7 +33,8 @@ > > namespace WebCore { > >-class WebKitMediaKeyMessageEvent : public Event { >+class WebKitMediaKeyMessageEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(WebKitMediaKeyMessageEvent); > public: > virtual ~WebKitMediaKeyMessageEvent(); > >diff --git a/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.cpp b/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.cpp >index 4bab062df36dea6c03d35bf86bb7975ae658de05..1f374f3fae633f59830f7b7059f182484f66b987 100644 >--- a/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.cpp >+++ b/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.cpp >@@ -29,9 +29,12 @@ > #if ENABLE(LEGACY_ENCRYPTED_MEDIA) > > #include <JavaScriptCore/Uint8Array.h> >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(WebKitMediaKeyNeededEvent); >+ > WebKitMediaKeyNeededEvent::WebKitMediaKeyNeededEvent(const AtomicString& type, Uint8Array* initData) > : Event(type, CanBubble::No, IsCancelable::No) > , m_initData(initData) >diff --git a/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.h b/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.h >index de487d5dfa5c5505c83446e08d8611c9acc40c1f..07cbf6fd976f809a2b4cc8bcadf1e7cc8557a55d 100644 >--- a/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.h >+++ b/Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.h >@@ -32,7 +32,8 @@ > > namespace WebCore { > >-class WebKitMediaKeyNeededEvent : public Event { >+class WebKitMediaKeyNeededEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(WebKitMediaKeyNeededEvent); > public: > virtual ~WebKitMediaKeyNeededEvent(); > >diff --git a/Source/WebCore/Modules/gamepad/GamepadEvent.cpp b/Source/WebCore/Modules/gamepad/GamepadEvent.cpp >index 68341943361b76f2c2f557581e9cb60e40549037..8c419b49543b22a79f1bd703f289aaaf37e67e2a 100644 >--- a/Source/WebCore/Modules/gamepad/GamepadEvent.cpp >+++ b/Source/WebCore/Modules/gamepad/GamepadEvent.cpp >@@ -27,8 +27,12 @@ > > #if ENABLE(GAMEPAD) > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(GamepadEvent); >+ > GamepadEvent::GamepadEvent(const AtomicString& eventType, Gamepad& gamepad) > : Event(eventType, CanBubble::No, IsCancelable::No) > , m_gamepad(&gamepad) >diff --git a/Source/WebCore/Modules/gamepad/GamepadEvent.h b/Source/WebCore/Modules/gamepad/GamepadEvent.h >index 6d50778e58855f3f2965a6ee455e86271786214b..ea929efb3ec9d244f2c943e558c8ec341075550f 100644 >--- a/Source/WebCore/Modules/gamepad/GamepadEvent.h >+++ b/Source/WebCore/Modules/gamepad/GamepadEvent.h >@@ -33,7 +33,8 @@ > > namespace WebCore { > >-class GamepadEvent : public Event { >+class GamepadEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(GamepadEvent); > public: > ~GamepadEvent() = default; > >diff --git a/Source/WebCore/Modules/indexeddb/IDBRequestCompletionEvent.cpp b/Source/WebCore/Modules/indexeddb/IDBRequestCompletionEvent.cpp >index b972004efc5ca21a3867546b62d9ebb29ac3b5df..023cbb4eabfaac978fbd0907a0e1330ae539fae4 100644 >--- a/Source/WebCore/Modules/indexeddb/IDBRequestCompletionEvent.cpp >+++ b/Source/WebCore/Modules/indexeddb/IDBRequestCompletionEvent.cpp >@@ -28,8 +28,12 @@ > > #if ENABLE(INDEXED_DATABASE) > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(IDBRequestCompletionEvent); >+ > IDBRequestCompletionEvent::IDBRequestCompletionEvent(const AtomicString& type, CanBubble canBubble, IsCancelable cancelable, IDBRequest& request) > : Event(type, canBubble, cancelable) > , m_request(request) >diff --git a/Source/WebCore/Modules/indexeddb/IDBRequestCompletionEvent.h b/Source/WebCore/Modules/indexeddb/IDBRequestCompletionEvent.h >index 32101eaca4908816786433fa6d0efa8e2b36c452..35cf304e4e05453af2ce975c50062f08daee9c51 100644 >--- a/Source/WebCore/Modules/indexeddb/IDBRequestCompletionEvent.h >+++ b/Source/WebCore/Modules/indexeddb/IDBRequestCompletionEvent.h >@@ -32,7 +32,8 @@ > > namespace WebCore { > >-class IDBRequestCompletionEvent : public Event { >+class IDBRequestCompletionEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(IDBRequestCompletionEvent); > public: > static Ref<Event> create(const AtomicString& type, CanBubble canBubble, IsCancelable cancelable, IDBRequest& request) > { >diff --git a/Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.cpp b/Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.cpp >index b6c5a86300e7a077319df0f818bd78fa29d209fa..18c51d27b55667e60eb6e49cf9f493d770b6018f 100644 >--- a/Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.cpp >+++ b/Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.cpp >@@ -28,8 +28,12 @@ > > #if ENABLE(INDEXED_DATABASE) > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(IDBVersionChangeEvent); >+ > IDBVersionChangeEvent::IDBVersionChangeEvent(const IDBResourceIdentifier& requestIdentifier, uint64_t oldVersion, uint64_t newVersion, const AtomicString& name) > : Event(name, CanBubble::No, IsCancelable::No) > , m_requestIdentifier(requestIdentifier) >diff --git a/Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.h b/Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.h >index e9218eba1626092194008de02185c0b3806340cf..ac7b0afc81e168f1aac72e598172198859902875 100644 >--- a/Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.h >+++ b/Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.h >@@ -34,6 +34,7 @@ > namespace WebCore { > > class IDBVersionChangeEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(IDBVersionChangeEvent); > public: > static Ref<IDBVersionChangeEvent> create(uint64_t oldVersion, uint64_t newVersion, const AtomicString& eventType) > { >diff --git a/Source/WebCore/Modules/mediarecorder/BlobEvent.cpp b/Source/WebCore/Modules/mediarecorder/BlobEvent.cpp >index 3d9afa347e60c668715771685c10c5f42344fc46..665e13a099bc8b11106a38fe942869ef5f6b6094 100644 >--- a/Source/WebCore/Modules/mediarecorder/BlobEvent.cpp >+++ b/Source/WebCore/Modules/mediarecorder/BlobEvent.cpp >@@ -29,9 +29,12 @@ > #if ENABLE(MEDIA_STREAM) > > #include "Blob.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(BlobEvent); >+ > Ref<BlobEvent> BlobEvent::create(const AtomicString& type, Init&& init, IsTrusted isTrusted) > { > return adoptRef(*new BlobEvent(type, WTFMove(init), isTrusted)); >diff --git a/Source/WebCore/Modules/mediarecorder/BlobEvent.h b/Source/WebCore/Modules/mediarecorder/BlobEvent.h >index b63ad33d3602147babc30e299a362f5f36c9d0e8..9fd84af228ada4e54a221924e2cb7104dde6cdd1 100644 >--- a/Source/WebCore/Modules/mediarecorder/BlobEvent.h >+++ b/Source/WebCore/Modules/mediarecorder/BlobEvent.h >@@ -33,6 +33,7 @@ namespace WebCore { > class Blob; > > class BlobEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(BlobEvent); > public: > struct Init : EventInit { > RefPtr<Blob> data; >diff --git a/Source/WebCore/Modules/mediarecorder/MediaRecorderErrorEvent.cpp b/Source/WebCore/Modules/mediarecorder/MediaRecorderErrorEvent.cpp >index f422ae808260b0e9eacb42225c3e73ba039675df..b6139a707237972772cf40cde050440b55e09aa2 100644 >--- a/Source/WebCore/Modules/mediarecorder/MediaRecorderErrorEvent.cpp >+++ b/Source/WebCore/Modules/mediarecorder/MediaRecorderErrorEvent.cpp >@@ -29,9 +29,11 @@ > #if ENABLE(MEDIA_STREAM) > > #include "DOMException.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(MediaRecorderErrorEvent); > > Ref<MediaRecorderErrorEvent> MediaRecorderErrorEvent::create(const AtomicString& type, Exception&& exception) > { >diff --git a/Source/WebCore/Modules/mediarecorder/MediaRecorderErrorEvent.h b/Source/WebCore/Modules/mediarecorder/MediaRecorderErrorEvent.h >index 891c3a30c32fd3efdd3af0d3faffdbe1cd0e7779..f8f2d342fe89de592b2a774cf0d201dfd1d76d69 100644 >--- a/Source/WebCore/Modules/mediarecorder/MediaRecorderErrorEvent.h >+++ b/Source/WebCore/Modules/mediarecorder/MediaRecorderErrorEvent.h >@@ -32,6 +32,7 @@ namespace WebCore { > class DOMException; > > class MediaRecorderErrorEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(MediaRecorderErrorEvent); > public: > struct Init : EventInit { > RefPtr<DOMException> error; >diff --git a/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.cpp b/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.cpp >index 67c45cdeb4c804c792cb9277ce18bb240fa0354b..85bb33882a31e4a4e716231b236fc1dcce76c2f5 100644 >--- a/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.cpp >+++ b/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.cpp >@@ -28,9 +28,12 @@ > #include "MediaStreamTrackEvent.h" > > #include "MediaStreamTrack.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(MediaStreamTrackEvent); >+ > Ref<MediaStreamTrackEvent> MediaStreamTrackEvent::create(const AtomicString& type, CanBubble canBubble, IsCancelable cancelable, RefPtr<MediaStreamTrack>&& track) > { > return adoptRef(*new MediaStreamTrackEvent(type, canBubble, cancelable, WTFMove(track))); >diff --git a/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.h b/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.h >index d155daeb1e13a4de29fd907243618cc438eaeea7..37acc5d76ed8b3d42af01fb3dc368f805cb0c5f0 100644 >--- a/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.h >+++ b/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.h >@@ -33,7 +33,8 @@ namespace WebCore { > > class MediaStreamTrack; > >-class MediaStreamTrackEvent : public Event { >+class MediaStreamTrackEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(MediaStreamTrackEvent); > public: > virtual ~MediaStreamTrackEvent(); > >diff --git a/Source/WebCore/Modules/mediastream/OverconstrainedErrorEvent.cpp b/Source/WebCore/Modules/mediastream/OverconstrainedErrorEvent.cpp >new file mode 100644 >index 0000000000000000000000000000000000000000..835e2af936315be8c72d5c4c5ba5cba3d30f41fb >--- /dev/null >+++ b/Source/WebCore/Modules/mediastream/OverconstrainedErrorEvent.cpp >@@ -0,0 +1,40 @@ >+/* >+ * Copyright (C) 2012 Google Inc. All rights reserved. >+ * Copyright (C) 2017 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 met: >+ * 1. Redistributions of source code must retain the above copyright >+ * notice, this list of conditions and the following disclaimer. >+ * 2. Redistributions in binary form must reproduce the above copyright >+ * notice, this list of conditions and the following disclaimer in the >+ * documentation and/or other materials provided with the distribution. >+ * >+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY >+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED >+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE >+ * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY >+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES >+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; >+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON >+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS >+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >+ */ >+ >+#include "config.h" >+#include "OverconstrainedErrorEvent.h" >+ >+#if ENABLE(WEB_RTC) >+ >+#include <wtf/IsoMallocInlines.h> >+ >+namespace WebCore { >+ >+WTF_MAKE_ISO_ALLOCATED_IMPL(OverconstrainedErrorEvent); >+ >+} // namespace WebCore >+ >+#endif // ENABLE(WEB_RTC) >+ >diff --git a/Source/WebCore/Modules/mediastream/OverconstrainedErrorEvent.h b/Source/WebCore/Modules/mediastream/OverconstrainedErrorEvent.h >index c804e2a2e903ec5d507b41a131e5796870369052..0679c4189cfc2109dd9d4bd28c4c53264ac20782 100644 >--- a/Source/WebCore/Modules/mediastream/OverconstrainedErrorEvent.h >+++ b/Source/WebCore/Modules/mediastream/OverconstrainedErrorEvent.h >@@ -36,7 +36,8 @@ > > namespace WebCore { > >-class OverconstrainedErrorEvent : public Event { >+class OverconstrainedErrorEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(OverconstrainedErrorEvent); > public: > virtual ~OverconstrainedErrorEvent() = default; > >diff --git a/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.cpp b/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.cpp >index b067d126157c9eddd3e57330f51271e89f191bbd..898f083d2a4211440786eb31fbf48f8ff62514ee 100644 >--- a/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.cpp >+++ b/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.cpp >@@ -29,9 +29,12 @@ > #if ENABLE(WEB_RTC_DTMF) > > #include "EventNames.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(RTCDTMFToneChangeEvent); >+ > Ref<RTCDTMFToneChangeEvent> RTCDTMFToneChangeEvent::create(const String& tone) > { > return adoptRef(*new RTCDTMFToneChangeEvent(tone)); >diff --git a/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h b/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h >index c8d6b281142781d47be15cc90c57767188d7994d..d8680966f8d8f385e3bd91a46b9064e95b9f29a9 100644 >--- a/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h >+++ b/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h >@@ -32,7 +32,8 @@ > > namespace WebCore { > >-class RTCDTMFToneChangeEvent : public Event { >+class RTCDTMFToneChangeEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(RTCDTMFToneChangeEvent); > public: > virtual ~RTCDTMFToneChangeEvent(); > >diff --git a/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.cpp b/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.cpp >index d72fb7a9160754a4d46a9639e67e28bbb6073aa1..50646895f2433c7723257e44a55031d079092fd0 100644 >--- a/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.cpp >+++ b/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.cpp >@@ -29,9 +29,12 @@ > #if ENABLE(WEB_RTC) > > #include "RTCDataChannel.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(RTCDataChannelEvent); >+ > Ref<RTCDataChannelEvent> RTCDataChannelEvent::create(const AtomicString& type, CanBubble canBubble, IsCancelable cancelable, Ref<RTCDataChannel>&& channel) > { > return adoptRef(*new RTCDataChannelEvent(type, canBubble, cancelable, WTFMove(channel))); >diff --git a/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h b/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h >index 49b24c7ecc6d8af42da087a39a5051e5e1a4282e..13265683655d1ce494693422d36fab8f74dfe1d3 100644 >--- a/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h >+++ b/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h >@@ -34,6 +34,7 @@ > namespace WebCore { > > class RTCDataChannelEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(RTCDataChannelEvent); > public: > struct Init : EventInit { > RefPtr<RTCDataChannel> channel; >diff --git a/Source/WebCore/Modules/mediastream/RTCPeerConnectionIceEvent.cpp b/Source/WebCore/Modules/mediastream/RTCPeerConnectionIceEvent.cpp >index 536ab5124bf5a8872804b865ac08ba6c3ec90fde..79c28c201446f23154c727de55a3e4f18aef0767 100644 >--- a/Source/WebCore/Modules/mediastream/RTCPeerConnectionIceEvent.cpp >+++ b/Source/WebCore/Modules/mediastream/RTCPeerConnectionIceEvent.cpp >@@ -29,9 +29,12 @@ > > #include "EventNames.h" > #include "RTCIceCandidate.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(RTCPeerConnectionIceEvent); >+ > Ref<RTCPeerConnectionIceEvent> RTCPeerConnectionIceEvent::create(CanBubble canBubble, IsCancelable cancelable, RefPtr<RTCIceCandidate>&& candidate, String&& serverURL) > { > return adoptRef(*new RTCPeerConnectionIceEvent(eventNames().icecandidateEvent, canBubble, cancelable, WTFMove(candidate), WTFMove(serverURL))); >diff --git a/Source/WebCore/Modules/mediastream/RTCPeerConnectionIceEvent.h b/Source/WebCore/Modules/mediastream/RTCPeerConnectionIceEvent.h >index 5f69d8ea7f7489fffc9769303a50ce0affa00596..2478261561e840598a251e8196e8865ca1910988 100644 >--- a/Source/WebCore/Modules/mediastream/RTCPeerConnectionIceEvent.h >+++ b/Source/WebCore/Modules/mediastream/RTCPeerConnectionIceEvent.h >@@ -32,7 +32,8 @@ > namespace WebCore { > class RTCIceCandidate; > >-class RTCPeerConnectionIceEvent : public Event { >+class RTCPeerConnectionIceEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(RTCPeerConnectionIceEvent); > public: > virtual ~RTCPeerConnectionIceEvent(); > >diff --git a/Source/WebCore/Modules/mediastream/RTCTrackEvent.cpp b/Source/WebCore/Modules/mediastream/RTCTrackEvent.cpp >index d4f3355a72b615956ba74cc9ac7096850ac83ace..30d8f910a9b9063cf4db8a50a08b7a179dc693ef 100644 >--- a/Source/WebCore/Modules/mediastream/RTCTrackEvent.cpp >+++ b/Source/WebCore/Modules/mediastream/RTCTrackEvent.cpp >@@ -36,9 +36,12 @@ > #include "MediaStream.h" > #include "MediaStreamTrack.h" > #include "RTCRtpTransceiver.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(RTCTrackEvent); >+ > Ref<RTCTrackEvent> RTCTrackEvent::create(const AtomicString& type, CanBubble canBubble, IsCancelable cancelable, RefPtr<RTCRtpReceiver>&& receiver, RefPtr<MediaStreamTrack>&& track, Vector<RefPtr<MediaStream>>&& streams, RefPtr<RTCRtpTransceiver>&& transceiver) > { > return adoptRef(*new RTCTrackEvent(type, canBubble, cancelable, WTFMove(receiver), WTFMove(track), WTFMove(streams), WTFMove(transceiver))); >diff --git a/Source/WebCore/Modules/mediastream/RTCTrackEvent.h b/Source/WebCore/Modules/mediastream/RTCTrackEvent.h >index 13251cde8f82bc1279d65a512a0cf16bc3cb2692..8e6d4099b7ff39ed35629b81577ff0b54112dba0 100644 >--- a/Source/WebCore/Modules/mediastream/RTCTrackEvent.h >+++ b/Source/WebCore/Modules/mediastream/RTCTrackEvent.h >@@ -44,7 +44,8 @@ class RTCRtpTransceiver; > > typedef Vector<RefPtr<MediaStream>> MediaStreamArray; > >-class RTCTrackEvent : public Event { >+class RTCTrackEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(RTCTrackEvent); > public: > static Ref<RTCTrackEvent> create(const AtomicString& type, CanBubble, IsCancelable, RefPtr<RTCRtpReceiver>&&, RefPtr<MediaStreamTrack>&&, MediaStreamArray&&, RefPtr<RTCRtpTransceiver>&&); > >diff --git a/Source/WebCore/Modules/paymentrequest/MerchantValidationEvent.cpp b/Source/WebCore/Modules/paymentrequest/MerchantValidationEvent.cpp >index 32a3b6f1ad64b1001580add3a995c4a403400661..4edf94ed0c4474bafae080cde61148d5c3d1f66b 100644 >--- a/Source/WebCore/Modules/paymentrequest/MerchantValidationEvent.cpp >+++ b/Source/WebCore/Modules/paymentrequest/MerchantValidationEvent.cpp >@@ -30,9 +30,12 @@ > > #include "Document.h" > #include "PaymentRequest.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(MerchantValidationEvent); >+ > Ref<MerchantValidationEvent> MerchantValidationEvent::create(const AtomicString& type, const String& methodName, URL&& validationURL) > { > return adoptRef(*new MerchantValidationEvent(type, methodName, WTFMove(validationURL))); >diff --git a/Source/WebCore/Modules/paymentrequest/MerchantValidationEvent.h b/Source/WebCore/Modules/paymentrequest/MerchantValidationEvent.h >index 29fffbf20b285f8f5e0e619d0871dd6495265d41..2e04b0cc8c9ff637440ab22cf13bf07a4819fce4 100644 >--- a/Source/WebCore/Modules/paymentrequest/MerchantValidationEvent.h >+++ b/Source/WebCore/Modules/paymentrequest/MerchantValidationEvent.h >@@ -36,6 +36,7 @@ class DOMPromise; > class Document; > > class MerchantValidationEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(MerchantValidationEvent); > public: > struct Init final : EventInit { > String methodName; >diff --git a/Source/WebCore/Modules/paymentrequest/PaymentMethodChangeEvent.cpp b/Source/WebCore/Modules/paymentrequest/PaymentMethodChangeEvent.cpp >index 62d405cfadf20264e634f66abb550d64cde3b8f4..cfb565356a38e0629a42ae28b60f2bf421e7189d 100644 >--- a/Source/WebCore/Modules/paymentrequest/PaymentMethodChangeEvent.cpp >+++ b/Source/WebCore/Modules/paymentrequest/PaymentMethodChangeEvent.cpp >@@ -28,8 +28,12 @@ > > #if ENABLE(PAYMENT_REQUEST) > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(PaymentMethodChangeEvent); >+ > EventInterface PaymentMethodChangeEvent::eventInterface() const > { > return PaymentMethodChangeEventInterfaceType; >diff --git a/Source/WebCore/Modules/paymentrequest/PaymentMethodChangeEvent.h b/Source/WebCore/Modules/paymentrequest/PaymentMethodChangeEvent.h >index 92f5a783b769d921478da23e93a73d15fcc5be6b..208f9c62918334ef54c8dcd7b2e352712cc01842 100644 >--- a/Source/WebCore/Modules/paymentrequest/PaymentMethodChangeEvent.h >+++ b/Source/WebCore/Modules/paymentrequest/PaymentMethodChangeEvent.h >@@ -40,6 +40,7 @@ class JSObject; > namespace WebCore { > > class PaymentMethodChangeEvent final : public PaymentRequestUpdateEvent { >+ WTF_MAKE_ISO_ALLOCATED(PaymentMethodChangeEvent); > public: > template<typename... Args> static Ref<PaymentMethodChangeEvent> create(Args&&... args) > { >diff --git a/Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.cpp b/Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.cpp >index a0d7d783f8b8ae255536e222326d764a44e7199a..d1c21af163c0b9fb7166e70454b7acb9afcd2234 100644 >--- a/Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.cpp >+++ b/Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.cpp >@@ -30,9 +30,12 @@ > > #include "EventNames.h" > #include "PaymentRequest.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(PaymentRequestUpdateEvent); >+ > PaymentRequestUpdateEvent::PaymentRequestUpdateEvent(const AtomicString& type, const PaymentRequestUpdateEventInit& eventInit) > : Event { type, eventInit, IsTrusted::No } > { >diff --git a/Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.h b/Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.h >index 1e7909bd648628557c080cce082d39424999b13f..2d657a2da096dc52ebd919eae991396fc35a7711 100644 >--- a/Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.h >+++ b/Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.h >@@ -36,6 +36,7 @@ class DOMPromise; > struct PaymentRequestUpdateEventInit; > > class PaymentRequestUpdateEvent : public Event { >+ WTF_MAKE_ISO_ALLOCATED(PaymentRequestUpdateEvent); > public: > template <typename... Args> static Ref<PaymentRequestUpdateEvent> create(Args&&... args) > { >diff --git a/Source/WebCore/Modules/speech/SpeechSynthesisEvent.cpp b/Source/WebCore/Modules/speech/SpeechSynthesisEvent.cpp >index f2fe025cd9cb83f344757745bc1ba870febe8119..82b3162598ba456721d23d089d3334732ee1c152 100644 >--- a/Source/WebCore/Modules/speech/SpeechSynthesisEvent.cpp >+++ b/Source/WebCore/Modules/speech/SpeechSynthesisEvent.cpp >@@ -28,8 +28,12 @@ > > #if ENABLE(SPEECH_SYNTHESIS) > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(SpeechSynthesisEvent); >+ > Ref<SpeechSynthesisEvent> SpeechSynthesisEvent::create(const AtomicString& type, unsigned charIndex, float elapsedTime, const String& name) > { > return adoptRef(*new SpeechSynthesisEvent(type, charIndex, elapsedTime, name)); >diff --git a/Source/WebCore/Modules/speech/SpeechSynthesisEvent.h b/Source/WebCore/Modules/speech/SpeechSynthesisEvent.h >index 6e7204b2bd0792858c02e12a504164ed5648c3c3..8d243bcafba4c7efdb6463f2ffa716685ec751f5 100644 >--- a/Source/WebCore/Modules/speech/SpeechSynthesisEvent.h >+++ b/Source/WebCore/Modules/speech/SpeechSynthesisEvent.h >@@ -31,7 +31,8 @@ > > namespace WebCore { > >-class SpeechSynthesisEvent : public Event { >+class SpeechSynthesisEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(SpeechSynthesisEvent); > public: > static Ref<SpeechSynthesisEvent> create(const AtomicString& type, unsigned charIndex, float elapsedTime, const String& name); > >diff --git a/Source/WebCore/Modules/webaudio/AudioProcessingEvent.cpp b/Source/WebCore/Modules/webaudio/AudioProcessingEvent.cpp >index aab29a3867e8d4157d2c612c9db722858cc0a6ff..3ed0c866124ae5b1aec5be009eebf0cd75192dc7 100644 >--- a/Source/WebCore/Modules/webaudio/AudioProcessingEvent.cpp >+++ b/Source/WebCore/Modules/webaudio/AudioProcessingEvent.cpp >@@ -30,9 +30,12 @@ > > #include "AudioBuffer.h" > #include "EventNames.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(AudioProcessingEvent); >+ > AudioProcessingEvent::AudioProcessingEvent() = default; > > AudioProcessingEvent::AudioProcessingEvent(RefPtr<AudioBuffer>&& inputBuffer, RefPtr<AudioBuffer>&& outputBuffer, double playbackTime) >diff --git a/Source/WebCore/Modules/webaudio/AudioProcessingEvent.h b/Source/WebCore/Modules/webaudio/AudioProcessingEvent.h >index 699157612219c574b8dd384b032a51db7cf8d53f..3a7da74de133d217958228a4892eeb2622436181 100644 >--- a/Source/WebCore/Modules/webaudio/AudioProcessingEvent.h >+++ b/Source/WebCore/Modules/webaudio/AudioProcessingEvent.h >@@ -33,6 +33,7 @@ namespace WebCore { > class AudioBuffer; > > class AudioProcessingEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(AudioProcessingEvent); > public: > static Ref<AudioProcessingEvent> create(RefPtr<AudioBuffer>&& inputBuffer, RefPtr<AudioBuffer>&& outputBuffer, double playbackTime) > { >diff --git a/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp b/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp >index 1634a1c3afe2ededbe0056160b5db89d46ab660e..7b9a3a8182ad85fc3faead57c04fc8c585d645fb 100644 >--- a/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp >+++ b/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp >@@ -30,9 +30,12 @@ > > #include "AudioBuffer.h" > #include "EventNames.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(OfflineAudioCompletionEvent); >+ > Ref<OfflineAudioCompletionEvent> OfflineAudioCompletionEvent::create(RefPtr<AudioBuffer>&& renderedBuffer) > { > return adoptRef(*new OfflineAudioCompletionEvent(WTFMove(renderedBuffer))); >diff --git a/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h b/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h >index 21fb43ad2bb823dab57c9d45e0480845a237db8a..b3d26787637633d69ec4d2d84eacdf7cc7e3df5b 100644 >--- a/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h >+++ b/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h >@@ -31,6 +31,7 @@ > namespace WebCore { > > class OfflineAudioCompletionEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(OfflineAudioCompletionEvent); > public: > static Ref<OfflineAudioCompletionEvent> create(RefPtr<AudioBuffer>&& renderedBuffer); > >diff --git a/Source/WebCore/Modules/websockets/CloseEvent.cpp b/Source/WebCore/Modules/websockets/CloseEvent.cpp >new file mode 100644 >index 0000000000000000000000000000000000000000..1de7eea90676773fafce344c6ead5a9deedb8209 >--- /dev/null >+++ b/Source/WebCore/Modules/websockets/CloseEvent.cpp >@@ -0,0 +1,35 @@ >+/* >+ * Copyright (C) 2019 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 met: >+ * 1. Redistributions of source code must retain the above copyright >+ * notice, this list of conditions and the following disclaimer. >+ * 2. Redistributions in binary form must reproduce the above copyright >+ * notice, this list of conditions and the following disclaimer in the >+ * documentation and/or other materials provided with the distribution. >+ * >+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY >+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE >+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR >+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, >+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, >+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR >+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY >+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE >+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >+ */ >+ >+#include "config.h" >+#include "CloseEvent.h" >+ >+#include <wtf/IsoMallocInlines.h> >+ >+namespace WebCore { >+ >+WTF_MAKE_ISO_ALLOCATED_IMPL(CloseEvent); >+ >+} // namespace WebCore >diff --git a/Source/WebCore/Modules/websockets/CloseEvent.h b/Source/WebCore/Modules/websockets/CloseEvent.h >index bc1a0c488bbf22f6ab74fa0485083e13ed2d9f85..71303b86b4dc4c6f7938ab36e7ab62ee6040ac30 100644 >--- a/Source/WebCore/Modules/websockets/CloseEvent.h >+++ b/Source/WebCore/Modules/websockets/CloseEvent.h >@@ -35,7 +35,8 @@ > > namespace WebCore { > >-class CloseEvent : public Event { >+class CloseEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(CloseEvent); > public: > static Ref<CloseEvent> create(bool wasClean, unsigned short code, const String& reason) > { >diff --git a/Source/WebCore/Modules/webvr/VRDisplayEvent.cpp b/Source/WebCore/Modules/webvr/VRDisplayEvent.cpp >index 9b74c184c330d957641ea6cc2ffed9d40ae9b14f..d6fae8c579e8692c2339143a7b5d7da3824a7bc1 100644 >--- a/Source/WebCore/Modules/webvr/VRDisplayEvent.cpp >+++ b/Source/WebCore/Modules/webvr/VRDisplayEvent.cpp >@@ -26,9 +26,12 @@ > #include "VRDisplayEvent.h" > > #include "VRDisplay.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(VRDisplayEvent); >+ > VRDisplayEvent::VRDisplayEvent(const AtomicString& type, const Init& initializer, IsTrusted isTrusted) > : Event(type, initializer, isTrusted) > , m_display(initializer.display) >diff --git a/Source/WebCore/Modules/webvr/VRDisplayEvent.h b/Source/WebCore/Modules/webvr/VRDisplayEvent.h >index 21ccb889be37267ca6b866920a13fcbc5697dacb..45606e695d03e9849ca4649bfe3145a4db34ceca 100644 >--- a/Source/WebCore/Modules/webvr/VRDisplayEvent.h >+++ b/Source/WebCore/Modules/webvr/VRDisplayEvent.h >@@ -31,6 +31,7 @@ > namespace WebCore { > > class VRDisplayEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(VRDisplayEvent); > public: > static Ref<VRDisplayEvent> create(const AtomicString& type, const RefPtr<VRDisplay>& display, Optional<VRDisplayEventReason>&& reason) > { >diff --git a/Source/WebCore/Sources.txt b/Source/WebCore/Sources.txt >index 0d381d38c1d6c9348cc36ae005828bcd6f40a993..9bf90edc38795a0f80e5b767565ab6bef6ebcee8 100644 >--- a/Source/WebCore/Sources.txt >+++ b/Source/WebCore/Sources.txt >@@ -167,6 +167,7 @@ Modules/mediastream/MediaStreamTrack.cpp > Modules/mediastream/MediaStreamTrackEvent.cpp > Modules/mediastream/MediaTrackConstraints.cpp > Modules/mediastream/NavigatorMediaDevices.cpp >+Modules/mediastream/OverconstrainedErrorEvent.cpp > Modules/mediastream/PeerConnectionBackend.cpp > Modules/mediastream/RTCCertificate.cpp > Modules/mediastream/RTCController.cpp >@@ -292,6 +293,7 @@ Modules/webdatabase/SQLTransactionStateMachine.cpp > > Modules/webdriver/NavigatorWebDriver.cpp > >+Modules/websockets/CloseEvent.cpp > Modules/websockets/ThreadableWebSocketChannel.cpp > Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp > Modules/websockets/WebSocket.cpp >@@ -569,6 +571,7 @@ bindings/js/ScriptCachedFrameData.cpp > bindings/js/ScriptController.cpp > bindings/js/ScriptModuleLoader.cpp > bindings/js/ScriptState.cpp >+bindings/js/ScriptWrappable.cpp > bindings/js/StructuredClone.cpp > bindings/js/SerializedScriptValue.cpp > bindings/js/WebCoreJSClientData.cpp >@@ -805,6 +808,7 @@ dom/ActiveDOMObject.cpp > dom/AllDescendantsCollection.cpp > dom/AnimationEvent.cpp > dom/Attr.cpp >+dom/BeforeLoadEvent.cpp > dom/BeforeTextInsertedEvent.cpp > dom/BeforeUnloadEvent.cpp > dom/CDATASection.cpp >@@ -869,6 +873,7 @@ dom/ExtensionStyleSheets.cpp > dom/FocusEvent.cpp > dom/FullscreenManager.cpp > dom/GenericEventQueue.cpp >+dom/HashChangeEvent.cpp > dom/IdTargetObserver.cpp > dom/IdTargetObserverRegistry.cpp > dom/InlineClassicScript.cpp >@@ -924,6 +929,7 @@ dom/ScriptableDocumentParser.cpp > dom/ScriptedAnimationController.cpp > dom/SecurityContext.cpp > dom/SecurityOriginPolicy.cpp >+dom/SecurityPolicyViolationEvent.cpp > dom/SelectorQuery.cpp > dom/ShadowRoot.cpp > dom/SimulatedClick.cpp >@@ -2447,6 +2453,7 @@ xml/DOMParser.cpp > xml/NativeXPathNSResolver.cpp > xml/XMLErrors.cpp > xml/XMLHttpRequest.cpp >+xml/XMLHttpRequestProgressEvent.cpp > xml/XMLHttpRequestProgressEventThrottle.cpp > xml/XMLHttpRequestUpload.cpp > xml/XMLSerializer.cpp >diff --git a/Source/WebCore/WebCore.xcodeproj/project.pbxproj b/Source/WebCore/WebCore.xcodeproj/project.pbxproj >index 8f7d3ca2dcb221ad45bf3584c17676582962c650..84700f0402d4cf8475982303ac2cde1e3b80403c 100644 >--- a/Source/WebCore/WebCore.xcodeproj/project.pbxproj >+++ b/Source/WebCore/WebCore.xcodeproj/project.pbxproj >@@ -14834,6 +14834,12 @@ > E3B2F0E91D7F3D3C00B0C9D1 /* LoadableScript.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LoadableScript.cpp; sourceTree = "<group>"; }; > E3B7C0621DC3415A001FB0B8 /* JSDocumentDOMJIT.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDocumentDOMJIT.cpp; sourceTree = "<group>"; }; > E3BC827322530221005276DE /* NodeList.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = NodeList.cpp; sourceTree = "<group>"; }; >+ E3BF19E122AF2F55009C9926 /* XMLHttpRequestProgressEvent.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = XMLHttpRequestProgressEvent.cpp; sourceTree = "<group>"; }; >+ E3BF19E322AF2FA5009C9926 /* OverconstrainedErrorEvent.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = OverconstrainedErrorEvent.cpp; sourceTree = "<group>"; }; >+ E3BF19E422AF2FCF009C9926 /* CloseEvent.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CloseEvent.cpp; sourceTree = "<group>"; }; >+ E3BF19E522AF2FF4009C9926 /* BeforeLoadEvent.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = BeforeLoadEvent.cpp; sourceTree = "<group>"; }; >+ E3BF19E622AF302A009C9926 /* HashChangeEvent.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = HashChangeEvent.cpp; sourceTree = "<group>"; }; >+ E3BF19E722AF309F009C9926 /* SecurityPolicyViolationEvent.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SecurityPolicyViolationEvent.cpp; sourceTree = "<group>"; }; > E3C99A081DC3D41700794AD3 /* DOMJITCheckDOM.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMJITCheckDOM.h; sourceTree = "<group>"; }; > E3C9AEC92113147400419B92 /* JSMicrotaskCallback.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSMicrotaskCallback.h; sourceTree = "<group>"; }; > E3D049931DADC04500718F3C /* NodeConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NodeConstants.h; sourceTree = "<group>"; }; >@@ -15677,6 +15683,7 @@ > 5EA725CC1ACABCB500EAD17B /* NavigatorMediaDevices.idl */, > 0704A4051D6DE9F10086DCDB /* OverconstrainedError.h */, > 0704A4031D6DE9F10086DCDB /* OverconstrainedError.idl */, >+ E3BF19E322AF2FA5009C9926 /* OverconstrainedErrorEvent.cpp */, > 072A703E1D6E8F6200DF0AFC /* OverconstrainedErrorEvent.h */, > 072A703F1D6E8F6200DF0AFC /* OverconstrainedErrorEvent.idl */, > 41E408381DCB747900EFCE19 /* PeerConnectionBackend.cpp */, >@@ -21925,6 +21932,7 @@ > 97AABCF714FA09B5007457AE /* websockets */ = { > isa = PBXGroup; > children = ( >+ E3BF19E422AF2FCF009C9926 /* CloseEvent.cpp */, > 97AABCF814FA09D5007457AE /* CloseEvent.h */, > 97AABCF914FA09D5007457AE /* CloseEvent.idl */, > 5C688AA01D380509000B54FA /* ThreadableWebSocketChannel.cpp */, >@@ -26251,6 +26259,7 @@ > BC348BA70DB7F1B8004ABAB9 /* XMLHttpRequest.idl */, > 83D35AEA1C7187ED00F70D5A /* XMLHttpRequestEventTarget.h */, > 83D35AEB1C7187ED00F70D5A /* XMLHttpRequestEventTarget.idl */, >+ E3BF19E122AF2F55009C9926 /* XMLHttpRequestProgressEvent.cpp */, > F9F0ED770DB50CA200D16DB9 /* XMLHttpRequestProgressEvent.h */, > F9F0ED780DB50CA200D16DB9 /* XMLHttpRequestProgressEvent.idl */, > A136A00A1134DBD200CC8D50 /* XMLHttpRequestProgressEventThrottle.cpp */, >@@ -27208,6 +27217,7 @@ > A8C4A7FB09D563270003AC8D /* Attr.h */, > 93EEC1E509C2877700C515D1 /* Attr.idl */, > A8C4A7F909D563270003AC8D /* Attribute.h */, >+ E3BF19E522AF2FF4009C9926 /* BeforeLoadEvent.cpp */, > BC9462D7107A7B4C00857193 /* BeforeLoadEvent.h */, > BC9462CB107A7A3900857193 /* BeforeLoadEvent.idl */, > AB23A32509BBA7D00067CC53 /* BeforeTextInsertedEvent.cpp */, >@@ -27424,6 +27434,7 @@ > 0720B09E14D3323500642955 /* GenericEventQueue.cpp */, > 0720B09F14D3323500642955 /* GenericEventQueue.h */, > 7C4189AB1B07C170000FA757 /* GlobalEventHandlers.idl */, >+ E3BF19E622AF302A009C9926 /* HashChangeEvent.cpp */, > 2442BBF81194C9D300D49469 /* HashChangeEvent.h */, > 8482B7441198C32E00BFB005 /* HashChangeEvent.idl */, > C3CF17A015B0063F00276D39 /* IdTargetObserver.cpp */, >@@ -27585,6 +27596,7 @@ > 976F36E914686225005E93B4 /* SecurityContext.h */, > 1AF7AFC51A48A8BC00C8E4E7 /* SecurityOriginPolicy.cpp */, > 1AF7AFC61A48A8BC00C8E4E7 /* SecurityOriginPolicy.h */, >+ E3BF19E722AF309F009C9926 /* SecurityPolicyViolationEvent.cpp */, > 2D5BC42516F882BE007048D0 /* SecurityPolicyViolationEvent.h */, > 2D5BC42616F882BE007048D0 /* SecurityPolicyViolationEvent.idl */, > E45322A9140CE267005A0F92 /* SelectorQuery.cpp */, >diff --git a/Source/WebCore/accessibility/AccessibleSetValueEvent.cpp b/Source/WebCore/accessibility/AccessibleSetValueEvent.cpp >index 0f81afb25e6da07924f0540d8fcd748d88ee2fb5..e794552a990e100f94b1762427a6011c9c2b6d29 100644 >--- a/Source/WebCore/accessibility/AccessibleSetValueEvent.cpp >+++ b/Source/WebCore/accessibility/AccessibleSetValueEvent.cpp >@@ -26,8 +26,12 @@ > #include "config.h" > #include "AccessibleSetValueEvent.h" > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(AccessibleSetValueEvent); >+ > AccessibleSetValueEvent::AccessibleSetValueEvent(const AtomicString& type, const AtomicString& value) > : Event(type, CanBubble::Yes, IsCancelable::Yes) > , m_value(value) >diff --git a/Source/WebCore/accessibility/AccessibleSetValueEvent.h b/Source/WebCore/accessibility/AccessibleSetValueEvent.h >index 02233c1bdebe9caf8fb3dfeff44b9ff52986388e..29c3883b7b9501c7270835fc22171fe21391d4b8 100644 >--- a/Source/WebCore/accessibility/AccessibleSetValueEvent.h >+++ b/Source/WebCore/accessibility/AccessibleSetValueEvent.h >@@ -29,7 +29,8 @@ > > namespace WebCore { > >-class AccessibleSetValueEvent : public Event { >+class AccessibleSetValueEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(AccessibleSetValueEvent); > public: > static Ref<AccessibleSetValueEvent> create(const AtomicString& type, const AtomicString& value) > { >diff --git a/Source/WebCore/animation/AnimationPlaybackEvent.cpp b/Source/WebCore/animation/AnimationPlaybackEvent.cpp >index 3ad1aedb20257b886196ad9a546a015f061f9ce3..fdea76625fb1d1872cfc53c589193c65ffa29d4a 100644 >--- a/Source/WebCore/animation/AnimationPlaybackEvent.cpp >+++ b/Source/WebCore/animation/AnimationPlaybackEvent.cpp >@@ -27,9 +27,12 @@ > #include "AnimationPlaybackEvent.h" > > #include "WebAnimationUtilities.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(AnimationPlaybackEvent); >+ > AnimationPlaybackEvent::AnimationPlaybackEvent(const AtomicString& type, const AnimationPlaybackEventInit& initializer, IsTrusted isTrusted) > : Event(type, initializer, isTrusted) > { >diff --git a/Source/WebCore/animation/AnimationPlaybackEvent.h b/Source/WebCore/animation/AnimationPlaybackEvent.h >index ea88d14ed91fdfa62999c1e4c8cb53d7a3afd5c2..0add2dc5830a6d9a6d91c20ee71cda70a579ebf7 100644 >--- a/Source/WebCore/animation/AnimationPlaybackEvent.h >+++ b/Source/WebCore/animation/AnimationPlaybackEvent.h >@@ -32,6 +32,7 @@ > namespace WebCore { > > class AnimationPlaybackEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(AnimationPlaybackEvent); > public: > static Ref<AnimationPlaybackEvent> create(const AtomicString& type, Optional<Seconds> currentTime, Optional<Seconds> timelineTime) > { >diff --git a/Source/WebCore/bindings/js/ScriptWrappable.cpp b/Source/WebCore/bindings/js/ScriptWrappable.cpp >new file mode 100644 >index 0000000000000000000000000000000000000000..22a9ebee46b0a293c33a4f5b2f66035f0ca82971 >--- /dev/null >+++ b/Source/WebCore/bindings/js/ScriptWrappable.cpp >@@ -0,0 +1,38 @@ >+/* >+ * Copyright (C) 2019 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 met: >+ * >+ * 1. Redistributions of source code must retain the above copyright >+ * notice, this list of conditions and the following disclaimer. >+ * 2. Redistributions in binary form must reproduce the above copyright >+ * notice, this list of conditions and the following disclaimer in the >+ * documentation and/or other materials provided with the distribution. >+ * 3. Neither the name of Apple Inc. ("Apple") nor the names of >+ * its contributors may be used to endorse or promote products derived >+ * from this software without specific prior written permission. >+ * >+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY >+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED >+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE >+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY >+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES >+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; >+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND >+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF >+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >+ */ >+ >+#include "config.h" >+#include "ScriptWrappable.h" >+ >+#include <wtf/IsoMallocInlines.h> >+ >+namespace WebCore { >+ >+WTF_MAKE_ISO_ALLOCATED_IMPL(ScriptWrappable); >+ >+} // namespace WebCore >diff --git a/Source/WebCore/bindings/js/ScriptWrappable.h b/Source/WebCore/bindings/js/ScriptWrappable.h >index f2c7e790b0a8d20c3be4c5278ff5cea0502c05df..4cca7ff06abcbe4502d6c5ebdbe1af8f222b37f1 100644 >--- a/Source/WebCore/bindings/js/ScriptWrappable.h >+++ b/Source/WebCore/bindings/js/ScriptWrappable.h >@@ -43,6 +43,7 @@ namespace WebCore { > class JSDOMObject; > > class ScriptWrappable { >+ WTF_MAKE_ISO_ALLOCATED(ScriptWrappable); > public: > JSDOMObject* wrapper() const; > void setWrapper(JSDOMObject*, JSC::WeakHandleOwner*, void*); >diff --git a/Source/WebCore/dom/AnimationEvent.cpp b/Source/WebCore/dom/AnimationEvent.cpp >index c5256671c7808ffc2f23654a94e6cf11a231ccd8..e75c28d63219a9d0bb341d07ba0fb2aa289bc211 100644 >--- a/Source/WebCore/dom/AnimationEvent.cpp >+++ b/Source/WebCore/dom/AnimationEvent.cpp >@@ -26,8 +26,12 @@ > #include "config.h" > #include "AnimationEvent.h" > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(AnimationEvent); >+ > AnimationEvent::AnimationEvent(const AtomicString& type, const Init& initializer, IsTrusted isTrusted) > : Event(type, initializer, isTrusted) > , m_animationName(initializer.animationName) >diff --git a/Source/WebCore/dom/AnimationEvent.h b/Source/WebCore/dom/AnimationEvent.h >index 52bebf428d67af796e34cc30edca6c4fcf71e590..d6b383e2d0dac3c02de8f7c4fbab62113b7a3000 100644 >--- a/Source/WebCore/dom/AnimationEvent.h >+++ b/Source/WebCore/dom/AnimationEvent.h >@@ -30,6 +30,7 @@ > namespace WebCore { > > class AnimationEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(AnimationEvent); > public: > static Ref<AnimationEvent> create(const AtomicString& type, const String& animationName, double elapsedTime) > { >diff --git a/Source/WebCore/dom/BeforeLoadEvent.cpp b/Source/WebCore/dom/BeforeLoadEvent.cpp >new file mode 100644 >index 0000000000000000000000000000000000000000..5dbe508bf30419b00e79f3886d15213279ed3adf >--- /dev/null >+++ b/Source/WebCore/dom/BeforeLoadEvent.cpp >@@ -0,0 +1,35 @@ >+/* >+ * Copyright (C) 2019 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 met: >+ * 1. Redistributions of source code must retain the above copyright >+ * notice, this list of conditions and the following disclaimer. >+ * 2. Redistributions in binary form must reproduce the above copyright >+ * notice, this list of conditions and the following disclaimer in the >+ * documentation and/or other materials provided with the distribution. >+ * >+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY >+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE >+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR >+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, >+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, >+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR >+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY >+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE >+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >+ */ >+ >+#include "config.h" >+#include "BeforeLoadEvent.h" >+ >+#include <wtf/IsoMallocInlines.h> >+ >+namespace WebCore { >+ >+WTF_MAKE_ISO_ALLOCATED_IMPL(BeforeLoadEvent); >+ >+} // namespace WebCore >diff --git a/Source/WebCore/dom/BeforeLoadEvent.h b/Source/WebCore/dom/BeforeLoadEvent.h >index f6356924959abe8b17eeb332c5d3388f86ea941d..9c6d2b6abac1fb8598feba38b60a01e8d9d22e1d 100644 >--- a/Source/WebCore/dom/BeforeLoadEvent.h >+++ b/Source/WebCore/dom/BeforeLoadEvent.h >@@ -32,6 +32,7 @@ > namespace WebCore { > > class BeforeLoadEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(BeforeLoadEvent); > public: > static Ref<BeforeLoadEvent> create(const String& url) > { >diff --git a/Source/WebCore/dom/BeforeTextInsertedEvent.cpp b/Source/WebCore/dom/BeforeTextInsertedEvent.cpp >index dcfcee07834e10168295013f3c5780463ec3f6f2..0e054cc57e2e341b54b6b7ffb7d9dcb9299aea1c 100644 >--- a/Source/WebCore/dom/BeforeTextInsertedEvent.cpp >+++ b/Source/WebCore/dom/BeforeTextInsertedEvent.cpp >@@ -1,5 +1,5 @@ > /* >- * Copyright (C) 2005 Apple Inc. All rights reserved. >+ * Copyright (C) 2005-2019 Apple Inc. All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions >@@ -27,9 +27,12 @@ > #include "BeforeTextInsertedEvent.h" > > #include "EventNames.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(BeforeTextInsertedEvent); >+ > BeforeTextInsertedEvent::BeforeTextInsertedEvent(const String& text) > : Event(eventNames().webkitBeforeTextInsertedEvent, CanBubble::No, IsCancelable::Yes), m_text(text) > { >diff --git a/Source/WebCore/dom/BeforeTextInsertedEvent.h b/Source/WebCore/dom/BeforeTextInsertedEvent.h >index cc92dfcd23e5dbcc1d5f51e6bbccc1285e9ee53f..211371952f1825762e38f166d324e0ea3e5fd5ed 100644 >--- a/Source/WebCore/dom/BeforeTextInsertedEvent.h >+++ b/Source/WebCore/dom/BeforeTextInsertedEvent.h >@@ -30,6 +30,7 @@ > namespace WebCore { > > class BeforeTextInsertedEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(BeforeTextInsertedEvent); > public: > virtual ~BeforeTextInsertedEvent(); > >diff --git a/Source/WebCore/dom/BeforeUnloadEvent.cpp b/Source/WebCore/dom/BeforeUnloadEvent.cpp >index 494fb7d487da1451246849574680e9520b9e63d4..a3cf0736c2296489482a746089c49ab59ab2b270 100644 >--- a/Source/WebCore/dom/BeforeUnloadEvent.cpp >+++ b/Source/WebCore/dom/BeforeUnloadEvent.cpp >@@ -24,9 +24,12 @@ > #include "BeforeUnloadEvent.h" > > #include "EventNames.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(BeforeUnloadEvent); >+ > BeforeUnloadEvent::BeforeUnloadEvent() > : Event(eventNames().beforeunloadEvent, CanBubble::No, IsCancelable::Yes) > { >diff --git a/Source/WebCore/dom/BeforeUnloadEvent.h b/Source/WebCore/dom/BeforeUnloadEvent.h >index 63e549b3fb9c5999c165f643ab2d222f10e88d94..3afd2dd885b610a47fabd7e162f0f4d5088e1d9b 100644 >--- a/Source/WebCore/dom/BeforeUnloadEvent.h >+++ b/Source/WebCore/dom/BeforeUnloadEvent.h >@@ -29,6 +29,7 @@ > namespace WebCore { > > class BeforeUnloadEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(BeforeUnloadEvent); > public: > static Ref<BeforeUnloadEvent> create() > { >diff --git a/Source/WebCore/dom/ClipboardEvent.cpp b/Source/WebCore/dom/ClipboardEvent.cpp >index 3caadcf24c5fe5569c70378faf5e72ff0f4d1e50..d7723e2a0b7ed5ec34de2565808f1b153fa248a1 100644 >--- a/Source/WebCore/dom/ClipboardEvent.cpp >+++ b/Source/WebCore/dom/ClipboardEvent.cpp >@@ -24,9 +24,12 @@ > #include "ClipboardEvent.h" > > #include "DataTransfer.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(ClipboardEvent); >+ > ClipboardEvent::ClipboardEvent(const AtomicString& type, Ref<DataTransfer>&& dataTransfer) > : Event(type, CanBubble::Yes, IsCancelable::Yes, IsComposed::Yes) > , m_clipboardData(WTFMove(dataTransfer)) >diff --git a/Source/WebCore/dom/ClipboardEvent.h b/Source/WebCore/dom/ClipboardEvent.h >index 7906be0d3801a7cb71460dfa988e1e705836ce10..cdb614c305bdd31401524a1c89b7c28ae12d6f5a 100644 >--- a/Source/WebCore/dom/ClipboardEvent.h >+++ b/Source/WebCore/dom/ClipboardEvent.h >@@ -30,6 +30,7 @@ namespace WebCore { > class DataTransfer; > > class ClipboardEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(ClipboardEvent); > public: > virtual ~ClipboardEvent(); > >diff --git a/Source/WebCore/dom/CompositionEvent.cpp b/Source/WebCore/dom/CompositionEvent.cpp >index 1d04795de82787052b6c961b79ee0f8e161ffb8a..2bde1471e435811960742ff0ca6b3bfcbe7608b1 100644 >--- a/Source/WebCore/dom/CompositionEvent.cpp >+++ b/Source/WebCore/dom/CompositionEvent.cpp >@@ -27,8 +27,12 @@ > #include "config.h" > #include "CompositionEvent.h" > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(CompositionEvent); >+ > CompositionEvent::CompositionEvent() = default; > > CompositionEvent::CompositionEvent(const AtomicString& type, RefPtr<WindowProxy>&& view, const String& data) >diff --git a/Source/WebCore/dom/CompositionEvent.h b/Source/WebCore/dom/CompositionEvent.h >index 223b8605949ca2e52c4f3c62295f38567aa6d223..7172dea836d939b6f569f9c52c9ca6679b9f145e 100644 >--- a/Source/WebCore/dom/CompositionEvent.h >+++ b/Source/WebCore/dom/CompositionEvent.h >@@ -31,6 +31,7 @@ > namespace WebCore { > > class CompositionEvent final : public UIEvent { >+ WTF_MAKE_ISO_ALLOCATED(CompositionEvent); > public: > static Ref<CompositionEvent> create(const AtomicString& type, RefPtr<WindowProxy>&& view, const String& data) > { >diff --git a/Source/WebCore/dom/CustomEvent.cpp b/Source/WebCore/dom/CustomEvent.cpp >index 6e650b3228698c9576288f66ddaff9f9ce4902cd..56a70d129af0eb068a903103598ce29a2e19ca75 100644 >--- a/Source/WebCore/dom/CustomEvent.cpp >+++ b/Source/WebCore/dom/CustomEvent.cpp >@@ -28,9 +28,12 @@ > #include "CustomEvent.h" > > #include <JavaScriptCore/JSCInlines.h> >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(CustomEvent); >+ > inline CustomEvent::CustomEvent(IsTrusted isTrusted) > : Event(isTrusted) > { >diff --git a/Source/WebCore/dom/CustomEvent.h b/Source/WebCore/dom/CustomEvent.h >index 973abbbaa70a0d872031ac4cb8ba899277b003db..6bf2cd6635893c4c168a438dd22c768a28e85f40 100644 >--- a/Source/WebCore/dom/CustomEvent.h >+++ b/Source/WebCore/dom/CustomEvent.h >@@ -33,6 +33,7 @@ > namespace WebCore { > > class CustomEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(CustomEvent); > public: > virtual ~CustomEvent(); > >diff --git a/Source/WebCore/dom/DeviceMotionEvent.cpp b/Source/WebCore/dom/DeviceMotionEvent.cpp >index 90d702dc39052d0fc76de08415da47b8373b2d96..7133c7657cd31cf082489f2212bba9eec3f8a8bb 100644 >--- a/Source/WebCore/dom/DeviceMotionEvent.cpp >+++ b/Source/WebCore/dom/DeviceMotionEvent.cpp >@@ -27,9 +27,12 @@ > #include "DeviceMotionEvent.h" > > #include "DeviceMotionData.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(DeviceMotionEvent); >+ > DeviceMotionEvent::~DeviceMotionEvent() = default; > > DeviceMotionEvent::DeviceMotionEvent() >diff --git a/Source/WebCore/dom/DeviceMotionEvent.h b/Source/WebCore/dom/DeviceMotionEvent.h >index 51d71a0e7cd7843d1582b039cce23a827253e9fc..c13b3de70482e15ac0813f8deab7eed8dd340e57 100644 >--- a/Source/WebCore/dom/DeviceMotionEvent.h >+++ b/Source/WebCore/dom/DeviceMotionEvent.h >@@ -33,6 +33,7 @@ namespace WebCore { > class DeviceMotionData; > > class DeviceMotionEvent final : public Event, public DeviceOrientationOrMotionEvent { >+ WTF_MAKE_ISO_ALLOCATED(DeviceMotionEvent); > public: > virtual ~DeviceMotionEvent(); > >diff --git a/Source/WebCore/dom/DeviceOrientationEvent.cpp b/Source/WebCore/dom/DeviceOrientationEvent.cpp >index e821b6553108a120c0fb27127ba5755190e71e1e..cc4c13123ddcac09c712be55942b51fde37abcd3 100644 >--- a/Source/WebCore/dom/DeviceOrientationEvent.cpp >+++ b/Source/WebCore/dom/DeviceOrientationEvent.cpp >@@ -27,9 +27,12 @@ > #include "DeviceOrientationEvent.h" > > #include "DeviceOrientationData.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(DeviceOrientationEvent); >+ > DeviceOrientationEvent::~DeviceOrientationEvent() = default; > > DeviceOrientationEvent::DeviceOrientationEvent() >diff --git a/Source/WebCore/dom/DeviceOrientationEvent.h b/Source/WebCore/dom/DeviceOrientationEvent.h >index 628708b6e84b52618e9683cd6cde67f3fa1168f3..45d36e07df9e4a9d26a2e51fc38819759dfb4397 100644 >--- a/Source/WebCore/dom/DeviceOrientationEvent.h >+++ b/Source/WebCore/dom/DeviceOrientationEvent.h >@@ -33,6 +33,7 @@ namespace WebCore { > class DeviceOrientationData; > > class DeviceOrientationEvent final : public Event, public DeviceOrientationOrMotionEvent { >+ WTF_MAKE_ISO_ALLOCATED(DeviceOrientationEvent); > public: > static Ref<DeviceOrientationEvent> create(const AtomicString& eventType, DeviceOrientationData* orientation) > { >diff --git a/Source/WebCore/dom/ErrorEvent.cpp b/Source/WebCore/dom/ErrorEvent.cpp >index 48dbd1d1a44aea9169505fe32b8b59988f16c154..5ae285413efa241c2dd3555716d92a5c14901586 100644 >--- a/Source/WebCore/dom/ErrorEvent.cpp >+++ b/Source/WebCore/dom/ErrorEvent.cpp >@@ -36,10 +36,13 @@ > #include "EventNames.h" > #include <JavaScriptCore/HeapInlines.h> > #include <JavaScriptCore/StrongInlines.h> >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > using namespace JSC; > >+WTF_MAKE_ISO_ALLOCATED_IMPL(ErrorEvent); >+ > ErrorEvent::ErrorEvent(const AtomicString& type, const Init& initializer, IsTrusted isTrusted) > : Event(type, initializer, isTrusted) > , m_message(initializer.message) >diff --git a/Source/WebCore/dom/ErrorEvent.h b/Source/WebCore/dom/ErrorEvent.h >index a85e93cca661ab7f4f4063bb1a737c6fa1187c5d..161bd11134df9b702807f88cbb9e229d46c3a567 100644 >--- a/Source/WebCore/dom/ErrorEvent.h >+++ b/Source/WebCore/dom/ErrorEvent.h >@@ -40,6 +40,7 @@ > namespace WebCore { > > class ErrorEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(ErrorEvent); > public: > static Ref<ErrorEvent> create(const String& message, const String& fileName, unsigned lineNumber, unsigned columnNumber, JSC::Strong<JSC::Unknown> error) > { >diff --git a/Source/WebCore/dom/Event.cpp b/Source/WebCore/dom/Event.cpp >index c8469c3c4bf05c0718f037cd7b7d97917fccb2a8..d5db6ba356b74070ce2cccbef1ac77c47fb58384 100644 >--- a/Source/WebCore/dom/Event.cpp >+++ b/Source/WebCore/dom/Event.cpp >@@ -32,9 +32,12 @@ > #include "Performance.h" > #include "UserGestureIndicator.h" > #include "WorkerGlobalScope.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(Event); >+ > ALWAYS_INLINE Event::Event(MonotonicTime createTime, const AtomicString& type, IsTrusted isTrusted, CanBubble canBubble, IsCancelable cancelable, IsComposed composed) > : m_isInitialized { !type.isNull() } > , m_canBubble { canBubble == CanBubble::Yes } >diff --git a/Source/WebCore/dom/Event.h b/Source/WebCore/dom/Event.h >index 11360858bf5d4670707b301f79b613cd988dd492..f4aceb2c3bf041df7812651baa96aa83b24c9995 100644 >--- a/Source/WebCore/dom/Event.h >+++ b/Source/WebCore/dom/Event.h >@@ -39,6 +39,7 @@ class EventTarget; > class ScriptExecutionContext; > > class Event : public ScriptWrappable, public RefCounted<Event> { >+ WTF_MAKE_ISO_ALLOCATED(Event); > public: > enum class IsTrusted : uint8_t { No, Yes }; > enum class CanBubble : uint8_t { No, Yes }; >diff --git a/Source/WebCore/dom/FocusEvent.cpp b/Source/WebCore/dom/FocusEvent.cpp >index 826361549c2e3b030cc8f9d633e954417b7898c5..80095a1a8168fc4a3a315809a55a6ab2410b28ed 100644 >--- a/Source/WebCore/dom/FocusEvent.cpp >+++ b/Source/WebCore/dom/FocusEvent.cpp >@@ -27,9 +27,12 @@ > #include "FocusEvent.h" > > #include "Node.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(FocusEvent); >+ > EventInterface FocusEvent::eventInterface() const > { > return FocusEventInterfaceType; >diff --git a/Source/WebCore/dom/FocusEvent.h b/Source/WebCore/dom/FocusEvent.h >index 867a008d5ca3b7e9d9ec537e1320bbaeef361526..d03752387095d2c3ff1825f227a4d87a7ea1c826 100644 >--- a/Source/WebCore/dom/FocusEvent.h >+++ b/Source/WebCore/dom/FocusEvent.h >@@ -34,6 +34,7 @@ namespace WebCore { > class Node; > > class FocusEvent final : public UIEvent { >+ WTF_MAKE_ISO_ALLOCATED(FocusEvent); > public: > static Ref<FocusEvent> create(const AtomicString& type, CanBubble canBubble, IsCancelable cancelable, RefPtr<WindowProxy>&& view, int detail, RefPtr<EventTarget>&& relatedTarget) > { >diff --git a/Source/WebCore/dom/HashChangeEvent.cpp b/Source/WebCore/dom/HashChangeEvent.cpp >new file mode 100644 >index 0000000000000000000000000000000000000000..1a70bad8d74c19b113941b18d2baeb8d9308be72 >--- /dev/null >+++ b/Source/WebCore/dom/HashChangeEvent.cpp >@@ -0,0 +1,35 @@ >+/* >+ * Copyright (C) 2019 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 met: >+ * 1. Redistributions of source code must retain the above copyright >+ * notice, this list of conditions and the following disclaimer. >+ * 2. Redistributions in binary form must reproduce the above copyright >+ * notice, this list of conditions and the following disclaimer in the >+ * documentation and/or other materials provided with the distribution. >+ * >+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY >+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE >+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR >+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, >+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, >+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR >+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY >+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE >+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >+ */ >+ >+#include "config.h" >+#include "HashChangeEvent.h" >+ >+#include <wtf/IsoMallocInlines.h> >+ >+namespace WebCore { >+ >+WTF_MAKE_ISO_ALLOCATED_IMPL(HashChangeEvent); >+ >+} >diff --git a/Source/WebCore/dom/HashChangeEvent.h b/Source/WebCore/dom/HashChangeEvent.h >index c81375eb867f20117caaaf449f135b0c3aaf9792..e35d2b75bea08c577719ae6561dc5b2905c17321 100644 >--- a/Source/WebCore/dom/HashChangeEvent.h >+++ b/Source/WebCore/dom/HashChangeEvent.h >@@ -26,6 +26,7 @@ > namespace WebCore { > > class HashChangeEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(HashChangeEvent); > public: > static Ref<HashChangeEvent> create(const String& oldURL, const String& newURL) > { >diff --git a/Source/WebCore/dom/InputEvent.cpp b/Source/WebCore/dom/InputEvent.cpp >index 040e5d5f268525b755b0102d06929a1e090d2015..0e622d560c0c8663c7acd66ccf127fcefec6bee5 100644 >--- a/Source/WebCore/dom/InputEvent.cpp >+++ b/Source/WebCore/dom/InputEvent.cpp >@@ -29,10 +29,13 @@ > #include "DataTransfer.h" > #include "Node.h" > #include "WindowProxy.h" >+#include <wtf/IsoMallocInlines.h> > #include <wtf/Vector.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(InputEvent); >+ > Ref<InputEvent> InputEvent::create(const AtomicString& eventType, const String& inputType, IsCancelable cancelable, RefPtr<WindowProxy>&& view, const String& data, RefPtr<DataTransfer>&& dataTransfer, const Vector<RefPtr<StaticRange>>& targetRanges, int detail) > { > return adoptRef(*new InputEvent(eventType, inputType, cancelable, WTFMove(view), data, WTFMove(dataTransfer), targetRanges, detail)); >diff --git a/Source/WebCore/dom/InputEvent.h b/Source/WebCore/dom/InputEvent.h >index b333bfe90af219d2597dabe36383cd96ab6b8e51..e433085b30e539d2ac9215ebd33f126a53cb17ba 100644 >--- a/Source/WebCore/dom/InputEvent.h >+++ b/Source/WebCore/dom/InputEvent.h >@@ -34,6 +34,7 @@ class DataTransfer; > class WindowProxy; > > class InputEvent final : public UIEvent { >+ WTF_MAKE_ISO_ALLOCATED(InputEvent); > public: > struct Init : UIEventInit { > String data; >diff --git a/Source/WebCore/dom/KeyboardEvent.cpp b/Source/WebCore/dom/KeyboardEvent.cpp >index 4ec6c9e9251e198317c305d678c3a482c6bcfb5d..d5a74470105bb60e95f0904f440ceb08875f8b60 100644 >--- a/Source/WebCore/dom/KeyboardEvent.cpp >+++ b/Source/WebCore/dom/KeyboardEvent.cpp >@@ -31,9 +31,12 @@ > #include "Frame.h" > #include "PlatformKeyboardEvent.h" > #include "WindowsKeyboardCodes.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(KeyboardEvent); >+ > static inline const AtomicString& eventTypeForKeyboardEventType(PlatformEvent::Type type) > { > switch (type) { >diff --git a/Source/WebCore/dom/KeyboardEvent.h b/Source/WebCore/dom/KeyboardEvent.h >index b7340b304fb8785f09c385c2724165822a56ce84..0ea5eb45561b7504ab247fc9a1ebeea36b1302dc 100644 >--- a/Source/WebCore/dom/KeyboardEvent.h >+++ b/Source/WebCore/dom/KeyboardEvent.h >@@ -35,6 +35,7 @@ class Node; > class PlatformKeyboardEvent; > > class KeyboardEvent final : public UIEventWithKeyState { >+ WTF_MAKE_ISO_ALLOCATED(KeyboardEvent); > public: > enum KeyLocationCode { > DOM_KEY_LOCATION_STANDARD = 0x00, >diff --git a/Source/WebCore/dom/MessageEvent.cpp b/Source/WebCore/dom/MessageEvent.cpp >index afb24e5b76bec8baead175f79d081111ccab0881..00eedff6af1738a224a194476aa25ad6bd6ae747 100644 >--- a/Source/WebCore/dom/MessageEvent.cpp >+++ b/Source/WebCore/dom/MessageEvent.cpp >@@ -31,11 +31,14 @@ > #include "Blob.h" > #include "EventNames.h" > #include <JavaScriptCore/JSCInlines.h> >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > > using namespace JSC; > >+WTF_MAKE_ISO_ALLOCATED_IMPL(MessageEvent); >+ > MessageEvent::MessageEvent() = default; > > inline MessageEvent::MessageEvent(const AtomicString& type, Init&& initializer, IsTrusted isTrusted) >diff --git a/Source/WebCore/dom/MessageEvent.h b/Source/WebCore/dom/MessageEvent.h >index 9216968263260d51047fcf62683abad24547187d..6a938a54db1bbf8fcca0709eb50ed8920dd4ba4f 100644 >--- a/Source/WebCore/dom/MessageEvent.h >+++ b/Source/WebCore/dom/MessageEvent.h >@@ -46,6 +46,7 @@ using MessageEventSource = Variant<RefPtr<WindowProxy>, RefPtr<MessagePort>>; > #endif > > class MessageEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(MessageEvent); > public: > static Ref<MessageEvent> create(Vector<RefPtr<MessagePort>>&&, Ref<SerializedScriptValue>&&, const String& origin = { }, const String& lastEventId = { }, Optional<MessageEventSource>&& source = WTF::nullopt); > static Ref<MessageEvent> create(const AtomicString& type, Ref<SerializedScriptValue>&&, const String& origin, const String& lastEventId); >diff --git a/Source/WebCore/dom/MouseEvent.cpp b/Source/WebCore/dom/MouseEvent.cpp >index f2516f75ecdabf672025bb190904fdef247ab844..4aae7df601b910bacc1abc3d160c8a329c90b1a2 100644 >--- a/Source/WebCore/dom/MouseEvent.cpp >+++ b/Source/WebCore/dom/MouseEvent.cpp >@@ -34,11 +34,14 @@ > #include "JSEventTargetCustom.h" > #include "PlatformMouseEvent.h" > #include "RuntimeApplicationChecks.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > > using namespace JSC; > >+WTF_MAKE_ISO_ALLOCATED_IMPL(MouseEvent); >+ > Ref<MouseEvent> MouseEvent::create(const AtomicString& type, const MouseEventInit& initializer) > { > return adoptRef(*new MouseEvent(type, initializer)); >diff --git a/Source/WebCore/dom/MouseEvent.h b/Source/WebCore/dom/MouseEvent.h >index cf8200d72e3d813960c54939d932ad623e85ae5f..56de11e71837a81a75368a561776a4426844a576 100644 >--- a/Source/WebCore/dom/MouseEvent.h >+++ b/Source/WebCore/dom/MouseEvent.h >@@ -38,6 +38,7 @@ class Node; > class PlatformMouseEvent; > > class MouseEvent : public MouseRelatedEvent { >+ WTF_MAKE_ISO_ALLOCATED(MouseEvent); > public: > WEBCORE_EXPORT static Ref<MouseEvent> create(const AtomicString& type, CanBubble, IsCancelable, IsComposed, MonotonicTime timestamp, RefPtr<WindowProxy>&&, int detail, > const IntPoint& screenLocation, const IntPoint& windowLocation, const IntPoint& movementDelta, OptionSet<Modifier>, short button, unsigned short buttons, >diff --git a/Source/WebCore/dom/MouseRelatedEvent.cpp b/Source/WebCore/dom/MouseRelatedEvent.cpp >index 73fed4571acdb443766bcd6881fe30bd0cd9c1e4..a7e62609b2453ee45c2a1b28c2cd7275de8623bc 100644 >--- a/Source/WebCore/dom/MouseRelatedEvent.cpp >+++ b/Source/WebCore/dom/MouseRelatedEvent.cpp >@@ -30,9 +30,12 @@ > #include "LayoutPoint.h" > #include "RenderLayer.h" > #include "RenderObject.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(MouseRelatedEvent); >+ > MouseRelatedEvent::MouseRelatedEvent(const AtomicString& eventType, CanBubble canBubble, IsCancelable isCancelable, IsComposed isComposed, > MonotonicTime timestamp, RefPtr<WindowProxy>&& view, int detail, > const IntPoint& screenLocation, const IntPoint& windowLocation, const IntPoint& movementDelta, OptionSet<Modifier> modifiers, IsSimulated isSimulated, IsTrusted isTrusted) >diff --git a/Source/WebCore/dom/MouseRelatedEvent.h b/Source/WebCore/dom/MouseRelatedEvent.h >index 930d90d714b3567a7766e2aecb2e614d79567560..8d51e8652fb9f851d27cc3d88dceafe6098dd318 100644 >--- a/Source/WebCore/dom/MouseRelatedEvent.h >+++ b/Source/WebCore/dom/MouseRelatedEvent.h >@@ -37,6 +37,7 @@ struct MouseRelatedEventInit : public EventModifierInit { > > // Internal only: Helper class for what's common between mouse and wheel events. > class MouseRelatedEvent : public UIEventWithKeyState { >+ WTF_MAKE_ISO_ALLOCATED(MouseRelatedEvent); > public: > enum class IsSimulated : uint8_t { Yes, No }; > >diff --git a/Source/WebCore/dom/MutationEvent.cpp b/Source/WebCore/dom/MutationEvent.cpp >index 13a7c2256632580210400534ac8156f30fc4e76a..d9bec646c16c6ead1e59336599842c7bcea00549 100644 >--- a/Source/WebCore/dom/MutationEvent.cpp >+++ b/Source/WebCore/dom/MutationEvent.cpp >@@ -23,8 +23,12 @@ > #include "config.h" > #include "MutationEvent.h" > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(MutationEvent); >+ > MutationEvent::MutationEvent(const AtomicString& type, CanBubble canBubble, IsCancelable cancelable, Node* relatedNode, const String& prevValue, const String& newValue) > : Event(type, canBubble, cancelable) > , m_relatedNode(relatedNode) >diff --git a/Source/WebCore/dom/MutationEvent.h b/Source/WebCore/dom/MutationEvent.h >index e58ed187acb1c2b87186d1929fdb2905a3ff1a3b..2e2ce1d017a24fc8140c73f1f55b2b7f283ba3cd 100644 >--- a/Source/WebCore/dom/MutationEvent.h >+++ b/Source/WebCore/dom/MutationEvent.h >@@ -29,6 +29,7 @@ > namespace WebCore { > > class MutationEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(MutationEvent); > public: > enum { > MODIFICATION = 1, >diff --git a/Source/WebCore/dom/OverflowEvent.cpp b/Source/WebCore/dom/OverflowEvent.cpp >index 8c53ad4acc6090f6221d98842e9bb79dd3715d57..b073437ff58d596072933374cc3466b720f32ae7 100644 >--- a/Source/WebCore/dom/OverflowEvent.cpp >+++ b/Source/WebCore/dom/OverflowEvent.cpp >@@ -27,9 +27,12 @@ > #include "OverflowEvent.h" > > #include "EventNames.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(OverflowEvent); >+ > OverflowEvent::OverflowEvent() > : m_orient(VERTICAL) > , m_horizontalOverflow(false) >diff --git a/Source/WebCore/dom/OverflowEvent.h b/Source/WebCore/dom/OverflowEvent.h >index f2da99578e3bc46b5feba27478165ffafbd45e3e..5b60ddcaa560a9f268899945008ea5da36ed2aa4 100644 >--- a/Source/WebCore/dom/OverflowEvent.h >+++ b/Source/WebCore/dom/OverflowEvent.h >@@ -30,6 +30,7 @@ > namespace WebCore { > > class OverflowEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(OverflowEvent); > public: > enum orientType { > HORIZONTAL = 0, >diff --git a/Source/WebCore/dom/PageTransitionEvent.cpp b/Source/WebCore/dom/PageTransitionEvent.cpp >index 08089d4ef890d1baa98a85898b41dfa5ee883c03..6425ef5a45400e41752969717dc0c992f3ba8519 100644 >--- a/Source/WebCore/dom/PageTransitionEvent.cpp >+++ b/Source/WebCore/dom/PageTransitionEvent.cpp >@@ -26,8 +26,12 @@ > #include "config.h" > #include "PageTransitionEvent.h" > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(PageTransitionEvent); >+ > PageTransitionEvent::PageTransitionEvent(const AtomicString& type, bool persisted) > : Event(type, CanBubble::Yes, IsCancelable::Yes) > , m_persisted(persisted) >diff --git a/Source/WebCore/dom/PageTransitionEvent.h b/Source/WebCore/dom/PageTransitionEvent.h >index 8442fa613ef0958fe39da02a344760755c086168..94127ea90529937eb6e300615fa31b7cfba8f281 100644 >--- a/Source/WebCore/dom/PageTransitionEvent.h >+++ b/Source/WebCore/dom/PageTransitionEvent.h >@@ -30,6 +30,7 @@ > namespace WebCore { > > class PageTransitionEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(PageTransitionEvent); > public: > static Ref<PageTransitionEvent> create(const AtomicString& type, bool persisted) > { >diff --git a/Source/WebCore/dom/PointerEvent.cpp b/Source/WebCore/dom/PointerEvent.cpp >index 01150983bc5592ebc00b6eff2049d2d128763ed6..5226a2368c608449d9937d45d8f4586083794aff 100644 >--- a/Source/WebCore/dom/PointerEvent.cpp >+++ b/Source/WebCore/dom/PointerEvent.cpp >@@ -28,10 +28,13 @@ > > #if ENABLE(POINTER_EVENTS) > >-#import "EventNames.h" >+#include "EventNames.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(PointerEvent); >+ > const String& PointerEvent::mousePointerType() > { > static NeverDestroyed<const String> mouseType(MAKE_STATIC_STRING_IMPL("mouse")); >diff --git a/Source/WebCore/dom/PointerEvent.h b/Source/WebCore/dom/PointerEvent.h >index 1ec736799ccb0c4f7413ca8e6ab63bd7ef47ea0d..47a2f5bf91f3c7bf47685161a02557018013117c 100644 >--- a/Source/WebCore/dom/PointerEvent.h >+++ b/Source/WebCore/dom/PointerEvent.h >@@ -40,6 +40,7 @@ > namespace WebCore { > > class PointerEvent final : public MouseEvent { >+ WTF_MAKE_ISO_ALLOCATED(PointerEvent); > public: > struct Init : MouseEventInit { > PointerID pointerId { mousePointerID }; >diff --git a/Source/WebCore/dom/PopStateEvent.cpp b/Source/WebCore/dom/PopStateEvent.cpp >index 3ad0c4f79c79966ffa8fdcba526606e1e8564f40..d93752965d6f8c5dd7be5aa0eaaf843e0c343dc3 100644 >--- a/Source/WebCore/dom/PopStateEvent.cpp >+++ b/Source/WebCore/dom/PopStateEvent.cpp >@@ -30,9 +30,12 @@ > #include "EventNames.h" > #include "History.h" > #include <JavaScriptCore/JSCInlines.h> >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(PopStateEvent); >+ > PopStateEvent::PopStateEvent(const AtomicString& type, const Init& initializer, IsTrusted isTrusted) > : Event(type, initializer, isTrusted) > , m_state(initializer.state) >diff --git a/Source/WebCore/dom/PopStateEvent.h b/Source/WebCore/dom/PopStateEvent.h >index d7d1e48c9756eff1c78ae21915b81893dbfdd369..6e9c00b693693a05b1cd94e970754dfc495e30c4 100644 >--- a/Source/WebCore/dom/PopStateEvent.h >+++ b/Source/WebCore/dom/PopStateEvent.h >@@ -35,6 +35,7 @@ class History; > class SerializedScriptValue; > > class PopStateEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(PopStateEvent); > public: > virtual ~PopStateEvent(); > static Ref<PopStateEvent> create(RefPtr<SerializedScriptValue>&&, History*); >diff --git a/Source/WebCore/dom/ProgressEvent.cpp b/Source/WebCore/dom/ProgressEvent.cpp >index a13708b80463603f11f7ec1c90a07bddd059a202..73cf85339800d8b16946dd54af175eec11be43fe 100644 >--- a/Source/WebCore/dom/ProgressEvent.cpp >+++ b/Source/WebCore/dom/ProgressEvent.cpp >@@ -26,8 +26,12 @@ > #include "config.h" > #include "ProgressEvent.h" > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(ProgressEvent); >+ > ProgressEvent::ProgressEvent(const AtomicString& type, const Init& initializer, IsTrusted isTrusted) > : Event(type, initializer, isTrusted) > , m_lengthComputable(initializer.lengthComputable) >diff --git a/Source/WebCore/dom/ProgressEvent.h b/Source/WebCore/dom/ProgressEvent.h >index ffabcb8b1d0d764296960d3a17704b1d57f77d6f..cebae3a20be6bf555886fe0aa42542c527687075 100644 >--- a/Source/WebCore/dom/ProgressEvent.h >+++ b/Source/WebCore/dom/ProgressEvent.h >@@ -30,6 +30,7 @@ > namespace WebCore { > > class ProgressEvent : public Event { >+ WTF_MAKE_ISO_ALLOCATED(ProgressEvent); > public: > static Ref<ProgressEvent> create(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total) > { >diff --git a/Source/WebCore/dom/PromiseRejectionEvent.cpp b/Source/WebCore/dom/PromiseRejectionEvent.cpp >index 451d6288b44110f54488b70f10476835a8223be3..16f36516c80b0aac74ffe2338f00efd10b908920 100644 >--- a/Source/WebCore/dom/PromiseRejectionEvent.cpp >+++ b/Source/WebCore/dom/PromiseRejectionEvent.cpp >@@ -30,10 +30,13 @@ > #include "JSDOMPromise.h" > #include <JavaScriptCore/HeapInlines.h> > #include <JavaScriptCore/StrongInlines.h> >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > using namespace JSC; > >+WTF_MAKE_ISO_ALLOCATED_IMPL(PromiseRejectionEvent); >+ > PromiseRejectionEvent::PromiseRejectionEvent(const AtomicString& type, const Init& initializer, IsTrusted isTrusted) > : Event(type, initializer, isTrusted) > , m_promise(*(initializer.promise)) >diff --git a/Source/WebCore/dom/PromiseRejectionEvent.h b/Source/WebCore/dom/PromiseRejectionEvent.h >index 2dc7d8555dbfce12effc6b9fd7228c35ece758b3..20bb723f4d48371e9858367925d4677646a390ba 100644 >--- a/Source/WebCore/dom/PromiseRejectionEvent.h >+++ b/Source/WebCore/dom/PromiseRejectionEvent.h >@@ -33,6 +33,7 @@ namespace WebCore { > class DOMPromise; > > class PromiseRejectionEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(PromiseRejectionEvent); > public: > struct Init : EventInit { > RefPtr<DOMPromise> promise; >diff --git a/Source/WebCore/dom/SecurityPolicyViolationEvent.cpp b/Source/WebCore/dom/SecurityPolicyViolationEvent.cpp >new file mode 100644 >index 0000000000000000000000000000000000000000..aeeed91bc27924bd09f4ce762afb0ca90adc3c06 >--- /dev/null >+++ b/Source/WebCore/dom/SecurityPolicyViolationEvent.cpp >@@ -0,0 +1,35 @@ >+/* >+ * Copyright (C) 2019 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 met: >+ * 1. Redistributions of source code must retain the above copyright >+ * notice, this list of conditions and the following disclaimer. >+ * 2. Redistributions in binary form must reproduce the above copyright >+ * notice, this list of conditions and the following disclaimer in the >+ * documentation and/or other materials provided with the distribution. >+ * >+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY >+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE >+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR >+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, >+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, >+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR >+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY >+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE >+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >+ */ >+ >+#include "config.h" >+#include "SecurityPolicyViolationEvent.h" >+ >+#include <wtf/IsoMallocInlines.h> >+ >+namespace WebCore { >+ >+WTF_MAKE_ISO_ALLOCATED_IMPL(SecurityPolicyViolationEvent); >+ >+} >diff --git a/Source/WebCore/dom/SecurityPolicyViolationEvent.h b/Source/WebCore/dom/SecurityPolicyViolationEvent.h >index abdd5c5500711d30d3537f472b41a4fd392eb5b6..975e713c2fb8c50d882cc56a63ee8620aeea2a65 100644 >--- a/Source/WebCore/dom/SecurityPolicyViolationEvent.h >+++ b/Source/WebCore/dom/SecurityPolicyViolationEvent.h >@@ -30,6 +30,7 @@ > namespace WebCore { > > class SecurityPolicyViolationEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(SecurityPolicyViolationEvent); > public: > static Ref<SecurityPolicyViolationEvent> create(const AtomicString& type, CanBubble canBubble, IsCancelable cancelable, const String& documentURI, const String& referrer, const String& blockedURI, const String& violatedDirective, const String& effectiveDirective, const String& originalPolicy, const String& sourceFile, unsigned short statusCode, int lineNumber, int columnNumber) > { >diff --git a/Source/WebCore/dom/TextEvent.cpp b/Source/WebCore/dom/TextEvent.cpp >index 6a041e8244bfafaead8ad15e24d41d99c29f63e6..032b16ae3c0b26078998ece7460d94ca03d9ca21 100644 >--- a/Source/WebCore/dom/TextEvent.cpp >+++ b/Source/WebCore/dom/TextEvent.cpp >@@ -30,9 +30,12 @@ > #include "DocumentFragment.h" > #include "Editor.h" > #include "EventNames.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(TextEvent); >+ > Ref<TextEvent> TextEvent::createForBindings() > { > return adoptRef(*new TextEvent); >diff --git a/Source/WebCore/dom/TextEvent.h b/Source/WebCore/dom/TextEvent.h >index 0ae2ac863fb81bbb286385165b6b1251d2dfb1b8..d785c3a1833d0724023cfa62260dc17fed1ef8f7 100644 >--- a/Source/WebCore/dom/TextEvent.h >+++ b/Source/WebCore/dom/TextEvent.h >@@ -37,6 +37,7 @@ namespace WebCore { > enum class MailBlockquoteHandling; > > class TextEvent final : public UIEvent { >+ WTF_MAKE_ISO_ALLOCATED(TextEvent); > public: > static Ref<TextEvent> create(RefPtr<WindowProxy>&&, const String& data, TextEventInputType = TextEventInputKeyboard); > static Ref<TextEvent> createForBindings(); >diff --git a/Source/WebCore/dom/TouchEvent.cpp b/Source/WebCore/dom/TouchEvent.cpp >index 53267e4421aa316f27c2e31a55b4e3920c8eff88..4de682071af24e1b5dc929d7ebe3665b6cee0234 100644 >--- a/Source/WebCore/dom/TouchEvent.cpp >+++ b/Source/WebCore/dom/TouchEvent.cpp >@@ -31,9 +31,12 @@ > #include "TouchEvent.h" > > #include "EventDispatcher.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(TouchEvent); >+ > TouchEvent::TouchEvent() = default; > > TouchEvent::TouchEvent(TouchList* touches, TouchList* targetTouches, TouchList* changedTouches, const AtomicString& type, >diff --git a/Source/WebCore/dom/TouchEvent.h b/Source/WebCore/dom/TouchEvent.h >index 13de0c298651ce4110e46a775cd31cac33b84eb5..ddd9b3f0085f386df10bd6db3088454ab28dee49 100644 >--- a/Source/WebCore/dom/TouchEvent.h >+++ b/Source/WebCore/dom/TouchEvent.h >@@ -36,6 +36,7 @@ > namespace WebCore { > > class TouchEvent final : public MouseRelatedEvent { >+ WTF_MAKE_ISO_ALLOCATED(TouchEvent); > public: > virtual ~TouchEvent(); > >diff --git a/Source/WebCore/dom/TransitionEvent.cpp b/Source/WebCore/dom/TransitionEvent.cpp >index 5db09b9939c04c3bfe10fa0631e7c17001334643..471bd9c76b964172beee2a0ace1fda1e2fc9179a 100644 >--- a/Source/WebCore/dom/TransitionEvent.cpp >+++ b/Source/WebCore/dom/TransitionEvent.cpp >@@ -27,8 +27,12 @@ > #include "config.h" > #include "TransitionEvent.h" > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(TransitionEvent); >+ > TransitionEvent::TransitionEvent(const AtomicString& type, const String& propertyName, double elapsedTime, const String& pseudoElement) > : Event(type, CanBubble::Yes, IsCancelable::Yes) > , m_propertyName(propertyName) >diff --git a/Source/WebCore/dom/TransitionEvent.h b/Source/WebCore/dom/TransitionEvent.h >index 06d1d04f2880c8e3885915a84f501b289c60ea11..cb13a02c5846abecaf2366d654228d517997e971 100644 >--- a/Source/WebCore/dom/TransitionEvent.h >+++ b/Source/WebCore/dom/TransitionEvent.h >@@ -31,6 +31,7 @@ > namespace WebCore { > > class TransitionEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(TransitionEvent); > public: > static Ref<TransitionEvent> create(const AtomicString& type, const String& propertyName, double elapsedTime, const String& pseudoElement) > { >diff --git a/Source/WebCore/dom/UIEvent.cpp b/Source/WebCore/dom/UIEvent.cpp >index 42f12e977331818bfaeca8d49a0c233140547ead..9f47ee3ebed8bb226bb7a159341f8ea99b976381 100644 >--- a/Source/WebCore/dom/UIEvent.cpp >+++ b/Source/WebCore/dom/UIEvent.cpp >@@ -24,9 +24,12 @@ > #include "UIEvent.h" > > #include "Node.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(UIEvent); >+ > UIEvent::UIEvent() > : m_detail(0) > { >diff --git a/Source/WebCore/dom/UIEvent.h b/Source/WebCore/dom/UIEvent.h >index 9333f039a7b47c2cde96346fc9e25982d03b16da..d1650e79d6363b662fdf544b71c0446288e01533 100644 >--- a/Source/WebCore/dom/UIEvent.h >+++ b/Source/WebCore/dom/UIEvent.h >@@ -33,6 +33,7 @@ namespace WebCore { > typedef WindowProxy AbstractView; > > class UIEvent : public Event { >+ WTF_MAKE_ISO_ALLOCATED(UIEvent); > public: > static Ref<UIEvent> create(const AtomicString& type, CanBubble canBubble, IsCancelable isCancelable, IsComposed isComposed, RefPtr<WindowProxy>&& view, int detail) > { >diff --git a/Source/WebCore/dom/UIEventWithKeyState.cpp b/Source/WebCore/dom/UIEventWithKeyState.cpp >index 8d1ea45a37cf89df2771aea7815453be1170c9eb..6bdeed3ff525f188981d0b8ba65b6f61ced5e841 100644 >--- a/Source/WebCore/dom/UIEventWithKeyState.cpp >+++ b/Source/WebCore/dom/UIEventWithKeyState.cpp >@@ -21,8 +21,12 @@ > #include "config.h" > #include "UIEventWithKeyState.h" > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(UIEventWithKeyState); >+ > auto UIEventWithKeyState::modifiersFromInitializer(const EventModifierInit& initializer) -> OptionSet<Modifier> > { > OptionSet<Modifier> result; >diff --git a/Source/WebCore/dom/UIEventWithKeyState.h b/Source/WebCore/dom/UIEventWithKeyState.h >index 1b5abd5b06b66bf764ec6fb69a02b24e9876415f..39cb39e2fd4a60c1199958ae4ad4f7f78d5fa3bc 100644 >--- a/Source/WebCore/dom/UIEventWithKeyState.h >+++ b/Source/WebCore/dom/UIEventWithKeyState.h >@@ -30,6 +30,7 @@ > namespace WebCore { > > class UIEventWithKeyState : public UIEvent { >+ WTF_MAKE_ISO_ALLOCATED(UIEventWithKeyState); > public: > using Modifier = PlatformEvent::Modifier; > >diff --git a/Source/WebCore/dom/WebKitAnimationEvent.cpp b/Source/WebCore/dom/WebKitAnimationEvent.cpp >index 38733f9bfbf7855085cb895428d826a516112084..03cf94f697bcd84333db590cdbcfb7f735551174 100644 >--- a/Source/WebCore/dom/WebKitAnimationEvent.cpp >+++ b/Source/WebCore/dom/WebKitAnimationEvent.cpp >@@ -26,8 +26,12 @@ > #include "config.h" > #include "WebKitAnimationEvent.h" > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(WebKitAnimationEvent); >+ > WebKitAnimationEvent::WebKitAnimationEvent(const AtomicString& type, const Init& initializer, IsTrusted isTrusted) > : Event(type, initializer, isTrusted) > , m_animationName(initializer.animationName) >diff --git a/Source/WebCore/dom/WebKitAnimationEvent.h b/Source/WebCore/dom/WebKitAnimationEvent.h >index 5506b619745a2515bc00941ce9b17675734cadf8..5bcad8afebb2367ed43e50aac19e38a40b84cf75 100644 >--- a/Source/WebCore/dom/WebKitAnimationEvent.h >+++ b/Source/WebCore/dom/WebKitAnimationEvent.h >@@ -30,6 +30,7 @@ > namespace WebCore { > > class WebKitAnimationEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(WebKitAnimationEvent); > public: > static Ref<WebKitAnimationEvent> create(const AtomicString& type, const String& animationName, double elapsedTime) > { >diff --git a/Source/WebCore/dom/WebKitTransitionEvent.cpp b/Source/WebCore/dom/WebKitTransitionEvent.cpp >index dab9bd1f04e57c596d7a5bac62dd8451596b26f7..ffb506a71cb250f2f41edadcd615142067c783a2 100644 >--- a/Source/WebCore/dom/WebKitTransitionEvent.cpp >+++ b/Source/WebCore/dom/WebKitTransitionEvent.cpp >@@ -26,8 +26,12 @@ > #include "config.h" > #include "WebKitTransitionEvent.h" > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(WebKitTransitionEvent); >+ > WebKitTransitionEvent::WebKitTransitionEvent(const AtomicString& type, const String& propertyName, double elapsedTime, const String& pseudoElement) > : Event(type, CanBubble::Yes, IsCancelable::Yes) > , m_propertyName(propertyName) >diff --git a/Source/WebCore/dom/WebKitTransitionEvent.h b/Source/WebCore/dom/WebKitTransitionEvent.h >index 76643ff62e59a89207f17d60053d73132d3ab94f..c709087671ff6dadccea5bd86cf2c10036f26a6d 100644 >--- a/Source/WebCore/dom/WebKitTransitionEvent.h >+++ b/Source/WebCore/dom/WebKitTransitionEvent.h >@@ -30,6 +30,7 @@ > namespace WebCore { > > class WebKitTransitionEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(WebKitTransitionEvent); > public: > static Ref<WebKitTransitionEvent> create(const AtomicString& type, const String& propertyName, double elapsedTime, const String& pseudoElement) > { >diff --git a/Source/WebCore/dom/WheelEvent.cpp b/Source/WebCore/dom/WheelEvent.cpp >index 37e07104463a4d3766c34980c79a3da922db7c1f..98eb66facd1621ea7db91385b925ae475ee1e607 100644 >--- a/Source/WebCore/dom/WheelEvent.cpp >+++ b/Source/WebCore/dom/WheelEvent.cpp >@@ -26,10 +26,13 @@ > > #include "DataTransfer.h" > #include "EventNames.h" >+#include <wtf/IsoMallocInlines.h> > #include <wtf/MathExtras.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(WheelEvent); >+ > inline static unsigned determineDeltaMode(const PlatformWheelEvent& event) > { > return event.granularity() == ScrollByPageWheelEvent ? WheelEvent::DOM_DELTA_PAGE : WheelEvent::DOM_DELTA_PIXEL; >diff --git a/Source/WebCore/dom/WheelEvent.h b/Source/WebCore/dom/WheelEvent.h >index 366157e9d32845a82cf54cc76786211f60b3c422..a148b426ceba7f270bc987a80189759785e04d4d 100644 >--- a/Source/WebCore/dom/WheelEvent.h >+++ b/Source/WebCore/dom/WheelEvent.h >@@ -30,6 +30,7 @@ > namespace WebCore { > > class WheelEvent final : public MouseEvent { >+ WTF_MAKE_ISO_ALLOCATED(WheelEvent); > public: > enum { TickMultiplier = 120 }; > >diff --git a/Source/WebCore/html/MediaEncryptedEvent.cpp b/Source/WebCore/html/MediaEncryptedEvent.cpp >index 48bb5a2f1fa85408dd918a767532365b38e612f6..74cba391b8a5501bc98482e3b6ca0856b432943d 100644 >--- a/Source/WebCore/html/MediaEncryptedEvent.cpp >+++ b/Source/WebCore/html/MediaEncryptedEvent.cpp >@@ -32,9 +32,12 @@ > #if ENABLE(ENCRYPTED_MEDIA) > > #include "NotImplemented.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(MediaEncryptedEvent); >+ > MediaEncryptedEvent::MediaEncryptedEvent(const AtomicString& type, const MediaEncryptedEventInit& initializer, IsTrusted isTrusted) > : Event(type, initializer, isTrusted) > , m_initDataType(initializer.initDataType) >diff --git a/Source/WebCore/html/MediaEncryptedEvent.h b/Source/WebCore/html/MediaEncryptedEvent.h >index b5219c1d0ce089570be1a97e895e9e898fa6f88f..8e1a306143cf6ace30f1e633f0e10b2a0ff0117c 100644 >--- a/Source/WebCore/html/MediaEncryptedEvent.h >+++ b/Source/WebCore/html/MediaEncryptedEvent.h >@@ -40,6 +40,7 @@ class ArrayBuffer; > namespace WebCore { > > class MediaEncryptedEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(MediaEncryptedEvent); > public: > using Init = MediaEncryptedEventInit; > >diff --git a/Source/WebCore/html/canvas/WebGLContextEvent.cpp b/Source/WebCore/html/canvas/WebGLContextEvent.cpp >index 41a6ea6ac6b7db88b6c87186259fc43883b6c9f2..01fdd55396cc8a532cd513c7e83ffef7c23ac17c 100644 >--- a/Source/WebCore/html/canvas/WebGLContextEvent.cpp >+++ b/Source/WebCore/html/canvas/WebGLContextEvent.cpp >@@ -28,8 +28,12 @@ > > #if ENABLE(WEBGL) > >+#include <wtf/IsoMallocInlines.h> >+ > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(WebGLContextEvent); >+ > WebGLContextEvent::WebGLContextEvent(const AtomicString& type, CanBubble canBubble, IsCancelable cancelable, const String& statusMessage) > : Event(type, canBubble, cancelable) > , m_statusMessage(statusMessage) >diff --git a/Source/WebCore/html/canvas/WebGLContextEvent.h b/Source/WebCore/html/canvas/WebGLContextEvent.h >index 99aad7efcb419d60cd71724f80cfe3a354b55383..3a05028fe61d93b9eb6da8413bfe44ef404bcdbc 100644 >--- a/Source/WebCore/html/canvas/WebGLContextEvent.h >+++ b/Source/WebCore/html/canvas/WebGLContextEvent.h >@@ -30,6 +30,7 @@ > namespace WebCore { > > class WebGLContextEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(WebGLContextEvent); > public: > static Ref<WebGLContextEvent> create(const AtomicString& type, CanBubble canBubble, IsCancelable cancelable, const String& statusMessage) > { >diff --git a/Source/WebCore/html/track/TrackEvent.cpp b/Source/WebCore/html/track/TrackEvent.cpp >index b9a90da3fd6fe124b5e4084122a8e0365abc1561..9730bd18cb31f9ee62779b71a89bb4319210e869 100644 >--- a/Source/WebCore/html/track/TrackEvent.cpp >+++ b/Source/WebCore/html/track/TrackEvent.cpp >@@ -28,9 +28,12 @@ > #if ENABLE(VIDEO_TRACK) > > #include "TrackEvent.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(TrackEvent); >+ > static inline Optional<TrackEvent::TrackEventTrack> convertToTrackEventTrack(Ref<TrackBase>&& track) > { > switch (track->type()) { >diff --git a/Source/WebCore/html/track/TrackEvent.h b/Source/WebCore/html/track/TrackEvent.h >index a8ec68c4d00c1df92d12d9973ddcdfb480a1d1cc..23a53690856e781d161af90e8077c0e33163c72e 100644 >--- a/Source/WebCore/html/track/TrackEvent.h >+++ b/Source/WebCore/html/track/TrackEvent.h >@@ -35,6 +35,7 @@ > namespace WebCore { > > class TrackEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(TrackEvent); > public: > virtual ~TrackEvent(); > >diff --git a/Source/WebCore/storage/StorageEvent.cpp b/Source/WebCore/storage/StorageEvent.cpp >index c7068afd9863acda7ca4111dcae001591a99ecf1..fcf345f7eed0ca9ba547dd594c15076910c9e39e 100644 >--- a/Source/WebCore/storage/StorageEvent.cpp >+++ b/Source/WebCore/storage/StorageEvent.cpp >@@ -27,9 +27,12 @@ > #include "StorageEvent.h" > > #include "Storage.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(StorageEvent); >+ > Ref<StorageEvent> StorageEvent::createForBindings() > { > return adoptRef(*new StorageEvent); >diff --git a/Source/WebCore/storage/StorageEvent.h b/Source/WebCore/storage/StorageEvent.h >index ac18aac9f8f38e5ffc8922cfec7fa4363665f3b2..83783ec36add910bed10b4d599f5bcdd93acd867 100644 >--- a/Source/WebCore/storage/StorageEvent.h >+++ b/Source/WebCore/storage/StorageEvent.h >@@ -32,7 +32,8 @@ namespace WebCore { > > class Storage; > >-class StorageEvent : public Event { >+class StorageEvent final : public Event { >+ WTF_MAKE_ISO_ALLOCATED(StorageEvent); > public: > static Ref<StorageEvent> create(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String& url, Storage* storageArea); > static Ref<StorageEvent> createForBindings(); >diff --git a/Source/WebCore/svg/SVGZoomEvent.cpp b/Source/WebCore/svg/SVGZoomEvent.cpp >index 87ca4cebb86c1835cbde576e2b7de15d6f209ea9..696fcf142e0cf48175f55debdfebc05185595a46 100644 >--- a/Source/WebCore/svg/SVGZoomEvent.cpp >+++ b/Source/WebCore/svg/SVGZoomEvent.cpp >@@ -24,9 +24,12 @@ > > #include "SVGPoint.h" > #include "SVGRect.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(SVGZoomEvent); >+ > SVGZoomEvent::SVGZoomEvent() > : m_newScale(0.0f) > , m_previousScale(0.0f) >diff --git a/Source/WebCore/svg/SVGZoomEvent.h b/Source/WebCore/svg/SVGZoomEvent.h >index d7e3fd1ed8e937c0a74cde05f044942d0d067c0a..bb1445bf1d82f56515ea3c43c4fd21bea4ba9732 100644 >--- a/Source/WebCore/svg/SVGZoomEvent.h >+++ b/Source/WebCore/svg/SVGZoomEvent.h >@@ -30,6 +30,7 @@ class SVGPoint; > class SVGRect; > > class SVGZoomEvent final : public UIEvent { >+ WTF_MAKE_ISO_ALLOCATED(SVGZoomEvent); > public: > static Ref<SVGZoomEvent> createForBindings() { return adoptRef(*new SVGZoomEvent); } > >diff --git a/Source/WebCore/workers/service/ExtendableEvent.cpp b/Source/WebCore/workers/service/ExtendableEvent.cpp >index 79679f9a0c3602c30b9b35399ac79ff65bdfd973..fc168848946df540805317a641f9da18b72d30e7 100644 >--- a/Source/WebCore/workers/service/ExtendableEvent.cpp >+++ b/Source/WebCore/workers/service/ExtendableEvent.cpp >@@ -31,9 +31,12 @@ > #include "JSDOMPromise.h" > #include "ScriptExecutionContext.h" > #include <JavaScriptCore/Microtask.h> >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(ExtendableEvent); >+ > ExtendableEvent::ExtendableEvent(const AtomicString& type, const ExtendableEventInit& initializer, IsTrusted isTrusted) > : Event(type, initializer, isTrusted) > { >diff --git a/Source/WebCore/workers/service/ExtendableEvent.h b/Source/WebCore/workers/service/ExtendableEvent.h >index baaf13ee60dea90d60c8b1c6e60a48757c45c785..7d58a9f0152de953a3b5c22d1f708b300efff7ca 100644 >--- a/Source/WebCore/workers/service/ExtendableEvent.h >+++ b/Source/WebCore/workers/service/ExtendableEvent.h >@@ -36,6 +36,7 @@ namespace WebCore { > class DOMPromise; > > class ExtendableEvent : public Event, public CanMakeWeakPtr<ExtendableEvent> { >+ WTF_MAKE_ISO_ALLOCATED(ExtendableEvent); > public: > static Ref<ExtendableEvent> create(const AtomicString& type, const ExtendableEventInit& initializer, IsTrusted isTrusted = IsTrusted::No) > { >diff --git a/Source/WebCore/workers/service/ExtendableMessageEvent.cpp b/Source/WebCore/workers/service/ExtendableMessageEvent.cpp >index 7b05fffc03114f7712323aa300927c7a77e4711f..5e0409c746b5a642d95bf2f5d65d2992043b53f1 100644 >--- a/Source/WebCore/workers/service/ExtendableMessageEvent.cpp >+++ b/Source/WebCore/workers/service/ExtendableMessageEvent.cpp >@@ -29,9 +29,12 @@ > #include "ExtendableMessageEvent.h" > > #include "EventNames.h" >+#include <wtf/IsoMallocInlines.h> > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(ExtendableMessageEvent); >+ > Ref<ExtendableMessageEvent> ExtendableMessageEvent::create(Vector<RefPtr<MessagePort>>&& ports, RefPtr<SerializedScriptValue>&& data, const String& origin, const String& lastEventId, Optional<ExtendableMessageEventSource>&& source) > { > return adoptRef(*new ExtendableMessageEvent(WTFMove(data), origin, lastEventId, WTFMove(source), WTFMove(ports))); >diff --git a/Source/WebCore/workers/service/ExtendableMessageEvent.h b/Source/WebCore/workers/service/ExtendableMessageEvent.h >index 4a01a79d27fc77c761f29a8b1df0351f544112f5..9cd36d9d5ad3898b852e07a3366eb8ecbc060041 100644 >--- a/Source/WebCore/workers/service/ExtendableMessageEvent.h >+++ b/Source/WebCore/workers/service/ExtendableMessageEvent.h >@@ -48,6 +48,7 @@ class ServiceWorkerClient; > using ExtendableMessageEventSource = Variant<RefPtr<ServiceWorkerClient>, RefPtr<ServiceWorker>, RefPtr<MessagePort>>; > > class ExtendableMessageEvent final : public ExtendableEvent { >+ WTF_MAKE_ISO_ALLOCATED(ExtendableMessageEvent); > public: > struct Init : ExtendableEventInit { > JSC::JSValue data; >diff --git a/Source/WebCore/workers/service/FetchEvent.cpp b/Source/WebCore/workers/service/FetchEvent.cpp >index 7767ac7aabc4fbf6c705ae3e7c0c68eeae797107..dadae28850b8044e08589f62adf8a865077cde68 100644 >--- a/Source/WebCore/workers/service/FetchEvent.cpp >+++ b/Source/WebCore/workers/service/FetchEvent.cpp >@@ -28,11 +28,14 @@ > > #include "JSDOMPromise.h" > #include "JSFetchResponse.h" >+#include <wtf/IsoMallocInlines.h> > > #if ENABLE(SERVICE_WORKER) > > namespace WebCore { > >+WTF_MAKE_ISO_ALLOCATED_IMPL(FetchEvent); >+ > Ref<FetchEvent> FetchEvent::createForTesting(ScriptExecutionContext& context) > { > FetchEvent::Init init; >diff --git a/Source/WebCore/workers/service/FetchEvent.h b/Source/WebCore/workers/service/FetchEvent.h >index f570b8a0dd4bc386b7b663906740a4a64b42c2f6..975d257eab1c1899c9cede1611e4cecbf74aba9c 100644 >--- a/Source/WebCore/workers/service/FetchEvent.h >+++ b/Source/WebCore/workers/service/FetchEvent.h >@@ -38,6 +38,7 @@ class FetchResponse; > class ResourceError; > > class FetchEvent final : public ExtendableEvent { >+ WTF_MAKE_ISO_ALLOCATED(FetchEvent); > public: > struct Init : ExtendableEventInit { > RefPtr<FetchRequest> request; >diff --git a/Source/WebCore/xml/XMLHttpRequestProgressEvent.cpp b/Source/WebCore/xml/XMLHttpRequestProgressEvent.cpp >new file mode 100644 >index 0000000000000000000000000000000000000000..600c0e3376514ea29ceb6ae42f9f2fccac0b129c >--- /dev/null >+++ b/Source/WebCore/xml/XMLHttpRequestProgressEvent.cpp >@@ -0,0 +1,35 @@ >+/* >+ * Copyright (C) 2019 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 met: >+ * 1. Redistributions of source code must retain the above copyright >+ * notice, this list of conditions and the following disclaimer. >+ * 2. Redistributions in binary form must reproduce the above copyright >+ * notice, this list of conditions and the following disclaimer in the >+ * documentation and/or other materials provided with the distribution. >+ * >+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS >+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT >+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR >+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT >+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, >+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT >+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, >+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY >+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE >+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >+ */ >+ >+#include "config.h" >+#include "XMLHttpRequestProgressEvent.h" >+ >+#include <wtf/IsoMallocInlines.h> >+ >+namespace WebCore { >+ >+WTF_MAKE_ISO_ALLOCATED_IMPL(XMLHttpRequestProgressEvent); >+ >+} // namespace WebCore >diff --git a/Source/WebCore/xml/XMLHttpRequestProgressEvent.h b/Source/WebCore/xml/XMLHttpRequestProgressEvent.h >index c0aeddd2dde129435094b52a0153a752209bef8a..dfb82899f5c3a9e12f6c1a57983d6b3d535b69d5 100644 >--- a/Source/WebCore/xml/XMLHttpRequestProgressEvent.h >+++ b/Source/WebCore/xml/XMLHttpRequestProgressEvent.h >@@ -30,7 +30,8 @@ > > namespace WebCore { > >-class XMLHttpRequestProgressEvent : public ProgressEvent { >+class XMLHttpRequestProgressEvent final : public ProgressEvent { >+ WTF_MAKE_ISO_ALLOCATED(XMLHttpRequestProgressEvent); > public: > static Ref<XMLHttpRequestProgressEvent> create(const AtomicString& type, bool lengthComputable = false, unsigned long long loaded = 0, unsigned long long total = 0) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 196656
: 371804