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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h

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/paint/PaintLayerScrollableArea.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
index a0d4db0700733884a5e3743dca8ddbac6281fd2d..59776ede1a329eefd15c45a7eaef833f5a3c1cfe 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
@@ -50,6 +50,8 @@
#include "core/paint/PaintInvalidationCapableScrollableArea.h"
#include "core/paint/PaintLayerFragment.h"
#include "platform/heap/Handle.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -457,7 +459,7 @@ private:
PaintLayerScrollableAreaRareData& ensureRareData()
{
if (!m_rareData)
- m_rareData = adoptPtr(new PaintLayerScrollableAreaRareData());
+ m_rareData = wrapUnique(new PaintLayerScrollableAreaRareData());
return *m_rareData.get();
}
@@ -509,7 +511,7 @@ private:
ScrollAnchor m_scrollAnchor;
- OwnPtr<PaintLayerScrollableAreaRareData> m_rareData;
+ std::unique_ptr<PaintLayerScrollableAreaRareData> m_rareData;
#if ENABLE(ASSERT)
bool m_hasBeenDisposed;
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698