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

Unified Diff: third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.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/invalidation/StyleInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp b/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
index a6a9e97eb93c60761f4b17c731b2198ff525dcb3..b5d291ef784ccbc4ca6cc679f39dec442f6dc2d7 100644
--- a/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
+++ b/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
@@ -14,6 +14,7 @@
#include "core/html/HTMLSlotElement.h"
#include "core/inspector/InspectorTraceEvents.h"
#include "core/layout/LayoutObject.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -100,7 +101,7 @@ PendingInvalidations& StyleInvalidator::ensurePendingInvalidations(Element& elem
{
PendingInvalidationMap::AddResult addResult = m_pendingInvalidationMap.add(&element, nullptr);
if (addResult.isNewEntry)
- addResult.storedValue->value = adoptPtr(new PendingInvalidations());
+ addResult.storedValue->value = wrapUnique(new PendingInvalidations());
return *addResult.storedValue->value;
}

Powered by Google App Engine
This is Rietveld 408576698