Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: third_party/WebKit/Source/core/dom/SelectorQuery.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/SelectorQuery.h
diff --git a/third_party/WebKit/Source/core/dom/SelectorQuery.h b/third_party/WebKit/Source/core/dom/SelectorQuery.h
index 2dc05bf48f44f9cf1b6c94ce9f4de82497677f7e..33fb5510d6f8f72579c17ee5e16d4395805fc4f5 100644
--- a/third_party/WebKit/Source/core/dom/SelectorQuery.h
+++ b/third_party/WebKit/Source/core/dom/SelectorQuery.h
@@ -32,7 +32,6 @@
#include "wtf/HashMap.h"
#include "wtf/Vector.h"
#include "wtf/text/AtomicStringHash.h"
-#include <memory>
namespace blink {
@@ -90,7 +89,7 @@ class CORE_EXPORT SelectorQuery {
WTF_MAKE_NONCOPYABLE(SelectorQuery);
USING_FAST_MALLOC(SelectorQuery);
public:
- static std::unique_ptr<SelectorQuery> adopt(CSSSelectorList);
+ static PassOwnPtr<SelectorQuery> adopt(CSSSelectorList);
bool matches(Element&) const;
Element* closest(Element&) const;
@@ -110,7 +109,7 @@ public:
void invalidate();
private:
- HashMap<AtomicString, std::unique_ptr<SelectorQuery>> m_entries;
+ HashMap<AtomicString, OwnPtr<SelectorQuery>> m_entries;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp ('k') | third_party/WebKit/Source/core/dom/SelectorQuery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698