| Index: Source/core/dom/SelectorQuery.cpp
|
| diff --git a/Source/core/dom/SelectorQuery.cpp b/Source/core/dom/SelectorQuery.cpp
|
| index 69841b8c1514505f059ef503707454e3b9c34795..d75fe0b6fc7db09c3bdd3e0cfdcdfb55fd5bad93 100644
|
| --- a/Source/core/dom/SelectorQuery.cpp
|
| +++ b/Source/core/dom/SelectorQuery.cpp
|
| @@ -496,7 +496,7 @@ PassRefPtr<Element> SelectorQuery::queryFirst(Node& rootNode) const
|
| return m_selectors.queryFirst(rootNode);
|
| }
|
|
|
| -SelectorQuery* SelectorQueryCache::add(const AtomicString& selectors, const Document& document, ExceptionState& es)
|
| +SelectorQuery* SelectorQueryCache::add(const AtomicString& selectors, const Document& document, ExceptionState& exceptionState)
|
| {
|
| HashMap<AtomicString, OwnPtr<SelectorQuery> >::iterator it = m_entries.find(selectors);
|
| if (it != m_entries.end())
|
| @@ -507,13 +507,13 @@ SelectorQuery* SelectorQueryCache::add(const AtomicString& selectors, const Docu
|
| parser.parseSelector(selectors, selectorList);
|
|
|
| if (!selectorList.first()) {
|
| - es.throwDOMException(SyntaxError, "Failed to execute query: '" + selectors + "' is not a valid selector.");
|
| + exceptionState.throwDOMException(SyntaxError, "Failed to execute query: '" + selectors + "' is not a valid selector.");
|
| return 0;
|
| }
|
|
|
| // throw a NamespaceError if the selector includes any namespace prefixes.
|
| if (selectorList.selectorsNeedNamespaceResolution()) {
|
| - es.throwDOMException(NamespaceError, "Failed to execute query: '" + selectors + "' contains namespaces, which are not supported.");
|
| + exceptionState.throwDOMException(NamespaceError, "Failed to execute query: '" + selectors + "' contains namespaces, which are not supported.");
|
| return 0;
|
| }
|
|
|
|
|