Index: Source/core/dom/custom/CustomElementCallbackInvocation.cpp |
diff --git a/Source/core/dom/custom/CustomElementCallbackInvocation.cpp b/Source/core/dom/custom/CustomElementCallbackInvocation.cpp |
index efa5c62d23c0d03635d59082fb2b322a4e24fb6a..77badcd11009809ca256859c84f0073cba3ac8bc 100644 |
--- a/Source/core/dom/custom/CustomElementCallbackInvocation.cpp |
+++ b/Source/core/dom/custom/CustomElementCallbackInvocation.cpp |
@@ -51,16 +51,16 @@ AttachedDetachedInvocation::AttachedDetachedInvocation(PassRefPtr<CustomElementL |
: CustomElementCallbackInvocation(callbacks) |
, m_which(which) |
{ |
- ASSERT(m_which == CustomElementLifecycleCallbacks::Attached || m_which == CustomElementLifecycleCallbacks::Detached); |
+ ASSERT(m_which == CustomElementLifecycleCallbacks::AttachedCallback || m_which == CustomElementLifecycleCallbacks::DetachedCallback); |
} |
void AttachedDetachedInvocation::dispatch(Element* element) |
{ |
switch (m_which) { |
- case CustomElementLifecycleCallbacks::Attached: |
+ case CustomElementLifecycleCallbacks::AttachedCallback: |
callbacks()->attached(element); |
break; |
- case CustomElementLifecycleCallbacks::Detached: |
+ case CustomElementLifecycleCallbacks::DetachedCallback: |
callbacks()->detached(element); |
break; |
default: |
@@ -108,18 +108,18 @@ private: |
void CreatedInvocation::dispatch(Element* element) |
{ |
if (element->inDocument() && element->document().domWindow()) |
- CustomElementScheduler::scheduleCallback(callbacks(), element, CustomElementLifecycleCallbacks::Attached); |
+ CustomElementScheduler::scheduleCallback(callbacks(), element, CustomElementLifecycleCallbacks::AttachedCallback); |
callbacks()->created(element); |
} |
PassOwnPtr<CustomElementCallbackInvocation> CustomElementCallbackInvocation::createInvocation(PassRefPtr<CustomElementLifecycleCallbacks> callbacks, CustomElementLifecycleCallbacks::CallbackType which) |
{ |
switch (which) { |
- case CustomElementLifecycleCallbacks::Created: |
+ case CustomElementLifecycleCallbacks::CreatedCallback: |
return adoptPtr(new CreatedInvocation(callbacks)); |
- case CustomElementLifecycleCallbacks::Attached: |
- case CustomElementLifecycleCallbacks::Detached: |
+ case CustomElementLifecycleCallbacks::AttachedCallback: |
+ case CustomElementLifecycleCallbacks::DetachedCallback: |
return adoptPtr(new AttachedDetachedInvocation(callbacks, which)); |
default: |
ASSERT_NOT_REACHED(); |