| 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
|
|
|