| Index: third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
|
| index d98ffdf548739168b655a155ddbe25e9c4e7515b..1a1c7afc83d1dec7adab267a98cbf32cd671aaab 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
|
| @@ -38,7 +38,7 @@ namespace blink {
|
|
|
| class AttachedDetachedInvocation final : public CustomElementCallbackInvocation {
|
| public:
|
| - AttachedDetachedInvocation(PassRefPtrWillBeRawPtr<CustomElementLifecycleCallbacks>, CustomElementLifecycleCallbacks::CallbackType which);
|
| + AttachedDetachedInvocation(RawPtr<CustomElementLifecycleCallbacks>, CustomElementLifecycleCallbacks::CallbackType which);
|
|
|
| private:
|
| void dispatch(Element*) override;
|
| @@ -46,7 +46,7 @@ private:
|
| CustomElementLifecycleCallbacks::CallbackType m_which;
|
| };
|
|
|
| -AttachedDetachedInvocation::AttachedDetachedInvocation(PassRefPtrWillBeRawPtr<CustomElementLifecycleCallbacks> callbacks, CustomElementLifecycleCallbacks::CallbackType which)
|
| +AttachedDetachedInvocation::AttachedDetachedInvocation(RawPtr<CustomElementLifecycleCallbacks> callbacks, CustomElementLifecycleCallbacks::CallbackType which)
|
| : CustomElementCallbackInvocation(callbacks)
|
| , m_which(which)
|
| {
|
| @@ -69,7 +69,7 @@ void AttachedDetachedInvocation::dispatch(Element* element)
|
|
|
| class AttributeChangedInvocation final : public CustomElementCallbackInvocation {
|
| public:
|
| - AttributeChangedInvocation(PassRefPtrWillBeRawPtr<CustomElementLifecycleCallbacks>, const AtomicString& name, const AtomicString& oldValue, const AtomicString& newValue);
|
| + AttributeChangedInvocation(RawPtr<CustomElementLifecycleCallbacks>, const AtomicString& name, const AtomicString& oldValue, const AtomicString& newValue);
|
|
|
| private:
|
| void dispatch(Element*) override;
|
| @@ -79,7 +79,7 @@ private:
|
| AtomicString m_newValue;
|
| };
|
|
|
| -AttributeChangedInvocation::AttributeChangedInvocation(PassRefPtrWillBeRawPtr<CustomElementLifecycleCallbacks> callbacks, const AtomicString& name, const AtomicString& oldValue, const AtomicString& newValue)
|
| +AttributeChangedInvocation::AttributeChangedInvocation(RawPtr<CustomElementLifecycleCallbacks> callbacks, const AtomicString& name, const AtomicString& oldValue, const AtomicString& newValue)
|
| : CustomElementCallbackInvocation(callbacks)
|
| , m_name(name)
|
| , m_oldValue(oldValue)
|
| @@ -94,7 +94,7 @@ void AttributeChangedInvocation::dispatch(Element* element)
|
|
|
| class CreatedInvocation final : public CustomElementCallbackInvocation {
|
| public:
|
| - explicit CreatedInvocation(PassRefPtrWillBeRawPtr<CustomElementLifecycleCallbacks> callbacks)
|
| + explicit CreatedInvocation(RawPtr<CustomElementLifecycleCallbacks> callbacks)
|
| : CustomElementCallbackInvocation(callbacks)
|
| {
|
| }
|
| @@ -111,24 +111,24 @@ void CreatedInvocation::dispatch(Element* element)
|
| callbacks()->created(element);
|
| }
|
|
|
| -PassOwnPtrWillBeRawPtr<CustomElementCallbackInvocation> CustomElementCallbackInvocation::createInvocation(PassRefPtrWillBeRawPtr<CustomElementLifecycleCallbacks> callbacks, CustomElementLifecycleCallbacks::CallbackType which)
|
| +RawPtr<CustomElementCallbackInvocation> CustomElementCallbackInvocation::createInvocation(RawPtr<CustomElementLifecycleCallbacks> callbacks, CustomElementLifecycleCallbacks::CallbackType which)
|
| {
|
| switch (which) {
|
| case CustomElementLifecycleCallbacks::CreatedCallback:
|
| - return adoptPtrWillBeNoop(new CreatedInvocation(callbacks));
|
| + return new CreatedInvocation(callbacks);
|
|
|
| case CustomElementLifecycleCallbacks::AttachedCallback:
|
| case CustomElementLifecycleCallbacks::DetachedCallback:
|
| - return adoptPtrWillBeNoop(new AttachedDetachedInvocation(callbacks, which));
|
| + return new AttachedDetachedInvocation(callbacks, which);
|
| default:
|
| ASSERT_NOT_REACHED();
|
| return nullptr;
|
| }
|
| }
|
|
|
| -PassOwnPtrWillBeRawPtr<CustomElementCallbackInvocation> CustomElementCallbackInvocation::createAttributeChangedInvocation(PassRefPtrWillBeRawPtr<CustomElementLifecycleCallbacks> callbacks, const AtomicString& name, const AtomicString& oldValue, const AtomicString& newValue)
|
| +RawPtr<CustomElementCallbackInvocation> CustomElementCallbackInvocation::createAttributeChangedInvocation(RawPtr<CustomElementLifecycleCallbacks> callbacks, const AtomicString& name, const AtomicString& oldValue, const AtomicString& newValue)
|
| {
|
| - return adoptPtrWillBeNoop(new AttributeChangedInvocation(callbacks, name, oldValue, newValue));
|
| + return new AttributeChangedInvocation(callbacks, name, oldValue, newValue);
|
| }
|
|
|
| DEFINE_TRACE(CustomElementCallbackInvocation)
|
|
|