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

Unified Diff: Source/core/dom/CustomElementCallbackQueue.h

Issue 18789002: Implement Custom Elements' attributeChangedCallback. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Sync to tip. Created 7 years, 5 months 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
« no previous file with comments | « Source/core/dom/CustomElementCallbackInvocation.cpp ('k') | Source/core/dom/CustomElementCallbackQueue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/CustomElementCallbackQueue.h
diff --git a/Source/core/dom/CustomElementCallbackQueue.h b/Source/core/dom/CustomElementCallbackQueue.h
index 236297d9f02c76b6a143bd90e70d10ad205be5e6..288aaf51aaba2380dd0e0eadd6963a808c139cbc 100644
--- a/Source/core/dom/CustomElementCallbackQueue.h
+++ b/Source/core/dom/CustomElementCallbackQueue.h
@@ -31,6 +31,7 @@
#ifndef CustomElementCallbackQueue_h
#define CustomElementCallbackQueue_h
+#include "core/dom/CustomElementCallbackInvocation.h"
#include "core/dom/CustomElementLifecycleCallbacks.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/PassRefPtr.h"
@@ -54,18 +55,16 @@ public:
m_owner = newOwner;
}
- typedef CustomElementLifecycleCallbacks::CallbackType Invocation;
- void append(const Invocation& invocation) { m_queue.append(invocation); }
+ void append(PassOwnPtr<CustomElementCallbackInvocation> invocation) { m_queue.append(invocation); }
void processInElementQueue(ElementQueue);
private:
CustomElementCallbackQueue(PassRefPtr<CustomElementLifecycleCallbacks>, PassRefPtr<Element>);
- void dispatch(const Invocation&);
RefPtr<CustomElementLifecycleCallbacks> m_callbacks;
RefPtr<Element> m_element;
- Vector<Invocation> m_queue;
+ Vector<OwnPtr<CustomElementCallbackInvocation> > m_queue;
ElementQueue m_owner;
size_t m_index;
};
« no previous file with comments | « Source/core/dom/CustomElementCallbackInvocation.cpp ('k') | Source/core/dom/CustomElementCallbackQueue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698