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

Unified Diff: third_party/WebKit/Source/core/css/SelectorFilter.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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/SelectorFilter.cpp
diff --git a/third_party/WebKit/Source/core/css/SelectorFilter.cpp b/third_party/WebKit/Source/core/css/SelectorFilter.cpp
index 73107df22f983b43c87c03abc72571bbcf885d6b..deb464e4eaf47d7cd877bd56831d9a5ec1e88490 100644
--- a/third_party/WebKit/Source/core/css/SelectorFilter.cpp
+++ b/third_party/WebKit/Source/core/css/SelectorFilter.cpp
@@ -30,6 +30,7 @@
#include "core/css/CSSSelector.h"
#include "core/dom/Document.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -86,7 +87,7 @@ void SelectorFilter::pushParent(Element& parent)
if (m_parentStack.isEmpty()) {
ASSERT(parent == parent.document().documentElement());
ASSERT(!m_ancestorIdentifierFilter);
- m_ancestorIdentifierFilter = adoptPtr(new IdentifierFilter);
+ m_ancestorIdentifierFilter = wrapUnique(new IdentifierFilter);
pushParentStackFrame(parent);
return;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/SelectorFilter.h ('k') | third_party/WebKit/Source/core/css/StyleRuleKeyframe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698