Index: third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp |
diff --git a/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp b/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp |
index 5f441468b57f2181108e173ec1d325aba0f93783..d10c1afc6100539a88c8208178590c07717fea43 100644 |
--- a/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp |
+++ b/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp |
@@ -8,6 +8,7 @@ |
#include "core/dom/Document.h" |
#include "core/html/HTMLHtmlElement.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#include <memory> |
namespace blink { |
@@ -19,7 +20,7 @@ TEST(SelectorQueryTest, NotMatchingPseudoElement) |
document->documentElement()->setInnerHTML("<body><style>span::before { content: 'X' }</style><span></span></body>", ASSERT_NO_EXCEPTION); |
CSSSelectorList selectorList = CSSParser::parseSelector(CSSParserContext(*document, nullptr), nullptr, "span::before"); |
- OwnPtr<SelectorQuery> query = SelectorQuery::adopt(std::move(selectorList)); |
+ std::unique_ptr<SelectorQuery> query = SelectorQuery::adopt(std::move(selectorList)); |
Element* elm = query->queryFirst(*document); |
EXPECT_EQ(nullptr, elm); |