| Index: Source/core/dom/custom/CustomElementCallbackInvocation.cpp
|
| diff --git a/Source/core/dom/custom/CustomElementCallbackInvocation.cpp b/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
|
| index 7263ffc011bc45aba57cca4ed98b6e0528c12a70..0079d05b9a151aab96adc996fbc641528d0481d7 100644
|
| --- a/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
|
| +++ b/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
|
| @@ -36,25 +36,6 @@
|
|
|
| namespace WebCore {
|
|
|
| -class CreatedInvocation : public CustomElementCallbackInvocation {
|
| -public:
|
| - CreatedInvocation(PassRefPtr<CustomElementLifecycleCallbacks> callbacks)
|
| - : CustomElementCallbackInvocation(callbacks)
|
| - {
|
| - }
|
| -
|
| -private:
|
| - virtual void dispatch(Element*) OVERRIDE;
|
| - virtual bool isCreated() const OVERRIDE { return true; }
|
| -};
|
| -
|
| -void CreatedInvocation::dispatch(Element* element)
|
| -{
|
| - if (element->inDocument() && element->document().domWindow())
|
| - CustomElementCallbackScheduler::scheduleEnteredViewCallback(callbacks(), element);
|
| - callbacks()->created(element);
|
| -}
|
| -
|
| class EnteredLeftViewInvocation : public CustomElementCallbackInvocation {
|
| public:
|
| EnteredLeftViewInvocation(PassRefPtr<CustomElementLifecycleCallbacks>, CustomElementLifecycleCallbacks::CallbackType which);
|
| @@ -114,9 +95,6 @@ void AttributeChangedInvocation::dispatch(Element* element)
|
| PassOwnPtr<CustomElementCallbackInvocation> CustomElementCallbackInvocation::createInvocation(PassRefPtr<CustomElementLifecycleCallbacks> callbacks, CustomElementLifecycleCallbacks::CallbackType which)
|
| {
|
| switch (which) {
|
| - case CustomElementLifecycleCallbacks::Created:
|
| - return adoptPtr(new CreatedInvocation(callbacks));
|
| -
|
| case CustomElementLifecycleCallbacks::EnteredView:
|
| case CustomElementLifecycleCallbacks::LeftView:
|
| return adoptPtr(new EnteredLeftViewInvocation(callbacks, which));
|
|
|