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

Unified Diff: Source/core/dom/custom/CustomElementCallbackScheduler.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/CustomElementCallbackScheduler.cpp
diff --git a/Source/core/dom/custom/CustomElementCallbackScheduler.cpp b/Source/core/dom/custom/CustomElementCallbackScheduler.cpp
index 2d36478ea86e92a6136e7c272fe8f44fb9d635e8..4d265ef6a1dfa91cd44296dca6c73ca49e86dd61 100644
--- a/Source/core/dom/custom/CustomElementCallbackScheduler.cpp
+++ b/Source/core/dom/custom/CustomElementCallbackScheduler.cpp
@@ -33,7 +33,9 @@
#include "core/dom/Element.h"
#include "core/dom/custom/CustomElementCallbackDispatcher.h"
+#include "core/dom/custom/CustomElementCallbackInvocation.h"
dominicc (has gone to gerrit) 2013/12/14 02:42:39 Oops. Thanks.
#include "core/dom/custom/CustomElementLifecycleCallbacks.h"
+#include "core/dom/custom/CustomElementResolutionStep.h"
namespace WebCore {
@@ -73,6 +75,12 @@ void CustomElementCallbackScheduler::scheduleLeftViewCallback(PassRefPtr<CustomE
queue->append(CustomElementCallbackInvocation::createInvocation(callbacks, CustomElementLifecycleCallbacks::LeftView));
}
+void CustomElementCallbackScheduler::scheduleResolutionStep(const CustomElementDescriptor& descriptor, PassRefPtr<Element> element)
+{
+ CustomElementCallbackQueue* queue = instance().schedule(element);
+ queue->append(CustomElementResolutionStep::create(descriptor));
+}
+
CustomElementCallbackScheduler& CustomElementCallbackScheduler::instance()
{
DEFINE_STATIC_LOCAL(CustomElementCallbackScheduler, instance, ());

Powered by Google App Engine
This is Rietveld 408576698