| Index: Source/core/dom/custom/CustomElementException.cpp
|
| diff --git a/Source/core/dom/custom/CustomElementException.cpp b/Source/core/dom/custom/CustomElementException.cpp
|
| index f240c8662e9c070b87637cce38f51c1653ae0188..78a01f163b1c1995c907a6add683acd14e54dcca 100644
|
| --- a/Source/core/dom/custom/CustomElementException.cpp
|
| +++ b/Source/core/dom/custom/CustomElementException.cpp
|
| @@ -41,51 +41,51 @@ String CustomElementException::preamble(const AtomicString& type)
|
| return "Failed to call 'register' on 'Document' for type '" + type + "': ";
|
| }
|
|
|
| -void CustomElementException::throwException(Reason reason, const AtomicString& type, ExceptionState& es)
|
| +void CustomElementException::throwException(Reason reason, const AtomicString& type, ExceptionState& exceptionState)
|
| {
|
| switch (reason) {
|
| case CannotRegisterFromExtension:
|
| - es.throwDOMException(NotSupportedError, preamble(type) + "elements cannot be registered from extensions.");
|
| + exceptionState.throwDOMException(NotSupportedError, preamble(type) + "elements cannot be registered from extensions.");
|
| return;
|
|
|
| case ConstructorPropertyNotConfigurable:
|
| - es.throwDOMException(NotSupportedError, preamble(type) + "prototype constructor property is not configurable.");
|
| + exceptionState.throwDOMException(NotSupportedError, preamble(type) + "prototype constructor property is not configurable.");
|
| return;
|
|
|
| case ContextDestroyedCheckingPrototype:
|
| - es.throwDOMException(InvalidStateError, preamble(type) + "the context is no longer valid.");
|
| + exceptionState.throwDOMException(InvalidStateError, preamble(type) + "the context is no longer valid.");
|
| return;
|
|
|
| case ContextDestroyedCreatingCallbacks:
|
| - es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
|
|
| case ContextDestroyedRegisteringDefinition:
|
| - es.throwUninformativeAndGenericDOMException(NotSupportedError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(NotSupportedError);
|
| return;
|
|
|
| case ExtendsIsInvalidName:
|
| - es.throwDOMException(InvalidCharacterError, preamble(type) + ": the tag name specified in 'extends' is not a valid tag name.");
|
| + exceptionState.throwDOMException(InvalidCharacterError, preamble(type) + ": the tag name specified in 'extends' is not a valid tag name.");
|
| return;
|
|
|
| case ExtendsIsCustomElementName:
|
| - es.throwDOMException(InvalidCharacterError, preamble(type) + ": the tag name specified in 'extends' is a custom element name. Use inheritance instead.");
|
| + exceptionState.throwDOMException(InvalidCharacterError, preamble(type) + ": the tag name specified in 'extends' is a custom element name. Use inheritance instead.");
|
| return;
|
|
|
| case InvalidName:
|
| - es.throwDOMException(InvalidCharacterError, preamble(type) + ": '" + type + "' is not a valid name.");
|
| + exceptionState.throwDOMException(InvalidCharacterError, preamble(type) + ": '" + type + "' is not a valid name.");
|
| return;
|
|
|
| case PrototypeInUse:
|
| - es.throwDOMException(NotSupportedError, preamble(type) + "prototype is already in-use as an interface prototype object.");
|
| + exceptionState.throwDOMException(NotSupportedError, preamble(type) + "prototype is already in-use as an interface prototype object.");
|
| return;
|
|
|
| case PrototypeNotAnObject:
|
| - es.throwDOMException(InvalidStateError, preamble(type) + "the prototype option is not an object.");
|
| + exceptionState.throwDOMException(InvalidStateError, preamble(type) + "the prototype option is not an object.");
|
| return;
|
|
|
| case TypeAlreadyRegistered:
|
| - es.throwDOMException(InvalidStateError, preamble(type) + "a type with that name is already registered.");
|
| + exceptionState.throwDOMException(InvalidStateError, preamble(type) + "a type with that name is already registered.");
|
| return;
|
| }
|
|
|
|
|