| Index: Source/core/dom/MutationObserver.cpp
|
| diff --git a/Source/core/dom/MutationObserver.cpp b/Source/core/dom/MutationObserver.cpp
|
| index a08412945f646766d30ab83a3736d3a211b7c5b7..ebe56393b3a40ff6bead51ba5c6ed8eae4bf94b4 100644
|
| --- a/Source/core/dom/MutationObserver.cpp
|
| +++ b/Source/core/dom/MutationObserver.cpp
|
| @@ -74,10 +74,10 @@ MutationObserver::~MutationObserver()
|
| ASSERT(m_registrations.isEmpty());
|
| }
|
|
|
| -void MutationObserver::observe(Node* node, const Dictionary& optionsDictionary, ExceptionState& es)
|
| +void MutationObserver::observe(Node* node, const Dictionary& optionsDictionary, ExceptionState& exceptionState)
|
| {
|
| if (!node) {
|
| - es.throwDOMException(NotFoundError, ExceptionMessages::failedToExecute("observe", "MutationObserver", "The provided node was null."));
|
| + exceptionState.throwDOMException(NotFoundError, ExceptionMessages::failedToExecute("observe", "MutationObserver", "The provided node was null."));
|
| return;
|
| }
|
|
|
| @@ -118,21 +118,21 @@ void MutationObserver::observe(Node* node, const Dictionary& optionsDictionary,
|
|
|
| if (!(options & Attributes)) {
|
| if (options & AttributeOldValue) {
|
| - es.throwDOMException(TypeError, ExceptionMessages::failedToExecute("observe", "MutationObserver", "The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present."));
|
| + exceptionState.throwDOMException(TypeError, ExceptionMessages::failedToExecute("observe", "MutationObserver", "The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present."));
|
| return;
|
| }
|
| if (options & AttributeFilter) {
|
| - es.throwDOMException(TypeError, ExceptionMessages::failedToExecute("observe", "MutationObserver", "The options object may only set 'attributeFilter' when 'attributes' is true or not present."));
|
| + exceptionState.throwDOMException(TypeError, ExceptionMessages::failedToExecute("observe", "MutationObserver", "The options object may only set 'attributeFilter' when 'attributes' is true or not present."));
|
| return;
|
| }
|
| }
|
| if (!((options & CharacterData) || !(options & CharacterDataOldValue))) {
|
| - es.throwDOMException(TypeError, ExceptionMessages::failedToExecute("observe", "MutationObserver", "The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present."));
|
| + exceptionState.throwDOMException(TypeError, ExceptionMessages::failedToExecute("observe", "MutationObserver", "The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present."));
|
| return;
|
| }
|
|
|
| if (!(options & (Attributes | CharacterData | ChildList))) {
|
| - es.throwDOMException(TypeError, ExceptionMessages::failedToExecute("observe", "MutationObserver", "The options object must set at least one of 'attributes', 'characterData', or 'childList' to true."));
|
| + exceptionState.throwDOMException(TypeError, ExceptionMessages::failedToExecute("observe", "MutationObserver", "The options object must set at least one of 'attributes', 'characterData', or 'childList' to true."));
|
| return;
|
| }
|
|
|
|
|