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

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

Issue 106903007: Let unresolved custom element go through CustomElementCallbackQueue. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/CustomElementResolutionInvocation.cpp
diff --git a/Source/modules/mediastream/NavigatorUserMediaError.cpp b/Source/core/dom/custom/CustomElementResolutionInvocation.cpp
similarity index 75%
copy from Source/modules/mediastream/NavigatorUserMediaError.cpp
copy to Source/core/dom/custom/CustomElementResolutionInvocation.cpp
index e9cef28d55f28832dcf3cf43e3528dda82d29eec..5b50b805b226b61be8c4a8f2b130f2725988e875 100644
--- a/Source/modules/mediastream/NavigatorUserMediaError.cpp
+++ b/Source/core/dom/custom/CustomElementResolutionInvocation.cpp
@@ -29,22 +29,21 @@
*/
#include "config.h"
-#include "modules/mediastream/NavigatorUserMediaError.h"
+#include "core/dom/custom/CustomElementResolutionInvocation.h"
+
+#include "core/dom/Element.h"
+#include "core/dom/custom/CustomElementRegistrationContext.h"
namespace WebCore {
-String NavigatorUserMediaError::name() const
+PassOwnPtr<CustomElementResolutionInvocation> CustomElementResolutionInvocation::createInvocation(const CustomElementDescriptor& descriptor)
{
- switch (m_name) {
- case NamePermissionDenied:
- return "PermissionDeniedError";
-
- case NameConstraintNotSatisfied:
- return "ConstraintNotSatisfiedError";
- }
+ return adoptPtr(new CustomElementResolutionInvocation(descriptor));
+}
- ASSERT_NOT_REACHED();
- return String();
+void CustomElementResolutionInvocation::dispatch(Element* element)
+{
+ element->document().registrationContext()->resolvePoppedElement(element, m_descriptor);
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698