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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerStackingNode.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/PaintLayerStackingNode.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h b/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h
index 977f7beade9190466b2317ebf6fc6490b52fd124..9da7094530ea9a6a998483d27706b8aa4a9532db 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h
@@ -48,8 +48,8 @@
#include "core/CoreExport.h"
#include "core/layout/LayoutBoxModelObject.h"
#include "wtf/Noncopyable.h"
-#include "wtf/OwnPtr.h"
#include "wtf/Vector.h"
+#include <memory>
namespace blink {
@@ -149,7 +149,7 @@ private:
}
void rebuildZOrderLists();
- void collectLayers(OwnPtr<Vector<PaintLayerStackingNode*>>& posZOrderList, OwnPtr<Vector<PaintLayerStackingNode*>>& negZOrderList);
+ void collectLayers(std::unique_ptr<Vector<PaintLayerStackingNode*>>& posZOrderList, std::unique_ptr<Vector<PaintLayerStackingNode*>>& negZOrderList);
#if ENABLE(ASSERT)
bool isInStackingParentZOrderLists() const;
@@ -169,8 +169,8 @@ private:
// that have z-indices of 0 (or is treated as 0 for positioned objects) or greater.
// m_negZOrderList holds descendants within our stacking context with
// negative z-indices.
- OwnPtr<Vector<PaintLayerStackingNode*>> m_posZOrderList;
- OwnPtr<Vector<PaintLayerStackingNode*>> m_negZOrderList;
+ std::unique_ptr<Vector<PaintLayerStackingNode*>> m_posZOrderList;
+ std::unique_ptr<Vector<PaintLayerStackingNode*>> m_negZOrderList;
// This boolean caches whether the z-order lists above are dirty.
// It is only ever set for stacking contexts, as no other element can

Powered by Google App Engine
This is Rietveld 408576698