| Index: Source/core/dom/Attr.cpp
|
| diff --git a/Source/core/dom/Attr.cpp b/Source/core/dom/Attr.cpp
|
| index f72059f7fa49a698e4f882a626d2d86c0048c6a7..1ebc4bbec56d97c056b8c103484e6101cbd547ef 100644
|
| --- a/Source/core/dom/Attr.cpp
|
| +++ b/Source/core/dom/Attr.cpp
|
| @@ -91,21 +91,21 @@ void Attr::createTextChild()
|
| }
|
| }
|
|
|
| -void Attr::setPrefix(const AtomicString& prefix, ExceptionState& es)
|
| +void Attr::setPrefix(const AtomicString& prefix, ExceptionState& exceptionState)
|
| {
|
| UseCounter::count(document(), UseCounter::AttributeSetPrefix);
|
|
|
| - checkSetPrefix(prefix, es);
|
| - if (es.hadException())
|
| + checkSetPrefix(prefix, exceptionState);
|
| + if (exceptionState.hadException())
|
| return;
|
|
|
| if (prefix == xmlnsAtom && namespaceURI() != XMLNSNames::xmlnsNamespaceURI) {
|
| - es.throwDOMException(NamespaceError, ExceptionMessages::failedToSet("prefix", "Attr", "The prefix '" + xmlnsAtom + "' may not be used on the namespace '" + namespaceURI() + "'."));
|
| + exceptionState.throwDOMException(NamespaceError, ExceptionMessages::failedToSet("prefix", "Attr", "The prefix '" + xmlnsAtom + "' may not be used on the namespace '" + namespaceURI() + "'."));
|
| return;
|
| }
|
|
|
| if (this->qualifiedName() == xmlnsAtom) {
|
| - es.throwDOMException(NamespaceError, ExceptionMessages::failedToSet("prefix", "Attr", "The prefix '" + prefix + "' may not be used as a namespace prefix for attributes whose qualified name is '" + xmlnsAtom + "'."));
|
| + exceptionState.throwDOMException(NamespaceError, ExceptionMessages::failedToSet("prefix", "Attr", "The prefix '" + prefix + "' may not be used as a namespace prefix for attributes whose qualified name is '" + xmlnsAtom + "'."));
|
| return;
|
| }
|
|
|
|
|