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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.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/PaintLayer.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.h b/third_party/WebKit/Source/core/paint/PaintLayer.h
index 7511da505dcc83ac072597a5e7eedddee5584230..90968fcb7b49308b1642b0eaadcba7c66e47800e 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -60,8 +60,7 @@
#include "platform/graphics/SquashingDisallowedReasons.h"
#include "public/platform/WebBlendMode.h"
#include "wtf/Allocator.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
+#include "wtf/OwnPtr.h"
namespace blink {
@@ -100,7 +99,7 @@ struct PaintLayerRareData {
// Our current relative position offset.
LayoutSize offsetForInFlowPosition;
- std::unique_ptr<TransformationMatrix> transform;
+ OwnPtr<TransformationMatrix> transform;
// Pointer to the enclosing Layer that caused us to be paginated. It is 0 if we are not paginated.
//
@@ -125,14 +124,14 @@ struct PaintLayerRareData {
// If the layer paints into its own backings, this keeps track of the backings.
// It's nullptr if the layer is not composited or paints into grouped backing.
- std::unique_ptr<CompositedLayerMapping> compositedLayerMapping;
+ OwnPtr<CompositedLayerMapping> compositedLayerMapping;
// If the layer paints into grouped backing (i.e. squashed), this points to the
// grouped CompositedLayerMapping. It's null if the layer is not composited or
// paints into its own backing.
CompositedLayerMapping* groupedMapping;
- std::unique_ptr<PaintLayerReflectionInfo> reflectionInfo;
+ OwnPtr<PaintLayerReflectionInfo> reflectionInfo;
Persistent<PaintLayerFilterInfo> filterInfo;
@@ -696,7 +695,7 @@ public:
ClipRectsCache& ensureClipRectsCache() const
{
if (!m_clipRectsCache)
- m_clipRectsCache = wrapUnique(new ClipRectsCache);
+ m_clipRectsCache = adoptPtr(new ClipRectsCache);
return *m_clipRectsCache;
}
void clearClipRectsCache() const { m_clipRectsCache.reset(); }
@@ -783,7 +782,7 @@ private:
PaintLayerRareData& ensureRareData()
{
if (!m_rareData)
- m_rareData = wrapUnique(new PaintLayerRareData);
+ m_rareData = adoptPtr(new PaintLayerRareData);
return *m_rareData;
}
@@ -883,19 +882,19 @@ private:
const PaintLayer* m_ancestorOverflowLayer;
AncestorDependentCompositingInputs m_ancestorDependentCompositingInputs;
- std::unique_ptr<RareAncestorDependentCompositingInputs> m_rareAncestorDependentCompositingInputs;
+ OwnPtr<RareAncestorDependentCompositingInputs> m_rareAncestorDependentCompositingInputs;
Persistent<PaintLayerScrollableArea> m_scrollableArea;
- mutable std::unique_ptr<ClipRectsCache> m_clipRectsCache;
+ mutable OwnPtr<ClipRectsCache> m_clipRectsCache;
- std::unique_ptr<PaintLayerStackingNode> m_stackingNode;
+ OwnPtr<PaintLayerStackingNode> m_stackingNode;
IntSize m_previousScrollOffsetAccumulationForPainting;
RefPtr<ClipRects> m_previousPaintingClipRects;
LayoutRect m_previousPaintDirtyRect;
- std::unique_ptr<PaintLayerRareData> m_rareData;
+ OwnPtr<PaintLayerRareData> m_rareData;
DISPLAY_ITEM_CACHE_STATUS_IMPLEMENTATION
};
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInfoTest.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698