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

Unified Diff: third_party/WebKit/Source/core/css/CSSSelector.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/css/CSSSelector.h
diff --git a/third_party/WebKit/Source/core/css/CSSSelector.h b/third_party/WebKit/Source/core/css/CSSSelector.h
index 766005b1d82533949068e5014dfce4c3c20a4c9a..65dab52ab9a88f0fc76aa261bd52256f9996df39 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.h
+++ b/third_party/WebKit/Source/core/css/CSSSelector.h
@@ -25,8 +25,9 @@
#include "core/CoreExport.h"
#include "core/dom/QualifiedName.h"
#include "core/style/ComputedStyleConstants.h"
+#include "wtf/OwnPtr.h"
+#include "wtf/PassOwnPtr.h"
#include "wtf/RefCounted.h"
-#include <memory>
namespace blink {
class CSSSelectorList;
@@ -251,7 +252,7 @@ public:
void setValue(const AtomicString&, bool matchLowerCase);
void setAttribute(const QualifiedName&, AttributeMatchType);
void setArgument(const AtomicString&);
- void setSelectorList(std::unique_ptr<CSSSelectorList>);
+ void setSelectorList(PassOwnPtr<CSSSelectorList>);
void setNth(int a, int b);
bool matchNth(int count) const;
@@ -337,7 +338,7 @@ private:
} m_bits;
QualifiedName m_attribute; // used for attribute selector
AtomicString m_argument; // Used for :contains, :lang, :nth-*
- std::unique_ptr<CSSSelectorList> m_selectorList; // Used for :-webkit-any and :not
+ OwnPtr<CSSSelectorList> m_selectorList; // Used for :-webkit-any and :not
private:
RareData(const AtomicString& value);
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPathValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698