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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.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/paint/PaintLayerScrollableArea.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
index 59776ede1a329eefd15c45a7eaef833f5a3c1cfe..a0d4db0700733884a5e3743dca8ddbac6281fd2d 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
@@ -50,8 +50,6 @@
#include "core/paint/PaintInvalidationCapableScrollableArea.h"
#include "core/paint/PaintLayerFragment.h"
#include "platform/heap/Handle.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
namespace blink {
@@ -459,7 +457,7 @@ private:
PaintLayerScrollableAreaRareData& ensureRareData()
{
if (!m_rareData)
- m_rareData = wrapUnique(new PaintLayerScrollableAreaRareData());
+ m_rareData = adoptPtr(new PaintLayerScrollableAreaRareData());
return *m_rareData.get();
}
@@ -511,7 +509,7 @@ private:
ScrollAnchor m_scrollAnchor;
- std::unique_ptr<PaintLayerScrollableAreaRareData> m_rareData;
+ OwnPtr<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