Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(477)

Unified Diff: Source/core/dom/custom/CustomElementCallbackInvocation.cpp

Issue 106903007: Let unresolved custom element go through CustomElementCallbackQueue. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));

Powered by Google App Engine
This is Rietveld 408576698