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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.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/layout/compositing/PaintLayerCompositor.h
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h
index 95cf7561a60ea90e1bca722432ec0f74133ff826..0ccd54c0bd9be58881825a7099d224f9018e6fd4 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h
@@ -30,7 +30,6 @@
#include "core/layout/compositing/CompositingReasonFinder.h"
#include "platform/graphics/GraphicsLayerClient.h"
#include "wtf/HashMap.h"
-#include <memory>
namespace blink {
@@ -220,7 +219,7 @@ private:
Scrollbar* graphicsLayerToScrollbar(const GraphicsLayer*) const;
LayoutView& m_layoutView;
- std::unique_ptr<GraphicsLayer> m_rootContentLayer;
+ OwnPtr<GraphicsLayer> m_rootContentLayer;
CompositingReasonFinder m_compositingReasonFinder;
@@ -245,16 +244,16 @@ private:
RootLayerAttachment m_rootLayerAttachment;
// Enclosing container layer, which clips for iframe content
- std::unique_ptr<GraphicsLayer> m_containerLayer;
- std::unique_ptr<GraphicsLayer> m_scrollLayer;
+ OwnPtr<GraphicsLayer> m_containerLayer;
+ OwnPtr<GraphicsLayer> m_scrollLayer;
// Enclosing layer for overflow controls and the clipping layer
- std::unique_ptr<GraphicsLayer> m_overflowControlsHostLayer;
+ OwnPtr<GraphicsLayer> m_overflowControlsHostLayer;
// Layers for overflow controls
- std::unique_ptr<GraphicsLayer> m_layerForHorizontalScrollbar;
- std::unique_ptr<GraphicsLayer> m_layerForVerticalScrollbar;
- std::unique_ptr<GraphicsLayer> m_layerForScrollCorner;
+ OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar;
+ OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar;
+ OwnPtr<GraphicsLayer> m_layerForScrollCorner;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698