| Index: third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| index 9fc5886c2acef31281dde655c4feeca57445cec5..212d353a15db86993d98e6d39140a9c352b1789c 100644
|
| --- a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| @@ -36,6 +36,8 @@
|
| #include "core/dom/StaticNodeList.h"
|
| #include "core/dom/shadow/ElementShadow.h"
|
| #include "core/dom/shadow/ShadowRoot.h"
|
| +#include "wtf/PtrUtil.h"
|
| +#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -525,9 +527,9 @@ void SelectorDataList::execute(ContainerNode& rootNode, typename SelectorQueryTr
|
| findTraverseRootsAndExecute<SelectorQueryTrait>(rootNode, output);
|
| }
|
|
|
| -PassOwnPtr<SelectorQuery> SelectorQuery::adopt(CSSSelectorList selectorList)
|
| +std::unique_ptr<SelectorQuery> SelectorQuery::adopt(CSSSelectorList selectorList)
|
| {
|
| - return adoptPtr(new SelectorQuery(std::move(selectorList)));
|
| + return wrapUnique(new SelectorQuery(std::move(selectorList)));
|
| }
|
|
|
| SelectorQuery::SelectorQuery(CSSSelectorList selectorList)
|
| @@ -558,7 +560,7 @@ Element* SelectorQuery::queryFirst(ContainerNode& rootNode) const
|
|
|
| SelectorQuery* SelectorQueryCache::add(const AtomicString& selectors, const Document& document, ExceptionState& exceptionState)
|
| {
|
| - HashMap<AtomicString, OwnPtr<SelectorQuery>>::iterator it = m_entries.find(selectors);
|
| + HashMap<AtomicString, std::unique_ptr<SelectorQuery>>::iterator it = m_entries.find(selectors);
|
| if (it != m_entries.end())
|
| return it->value.get();
|
|
|
|
|