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

Unified Diff: third_party/WebKit/Source/web/LinkHighlightImpl.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/web/LinkHighlightImpl.h
diff --git a/third_party/WebKit/Source/web/LinkHighlightImpl.h b/third_party/WebKit/Source/web/LinkHighlightImpl.h
index 86c28fc314404fa8dcb41480fcf89f2fc1c61123..d92a28a7ecd2cf877745496d52f7d84548f54c30 100644
--- a/third_party/WebKit/Source/web/LinkHighlightImpl.h
+++ b/third_party/WebKit/Source/web/LinkHighlightImpl.h
@@ -36,7 +36,7 @@
#include "public/platform/WebContentLayerClient.h"
#include "web/WebExport.h"
#include "wtf/Forward.h"
-#include <memory>
+#include "wtf/OwnPtr.h"
namespace blink {
@@ -52,7 +52,7 @@ class WEB_EXPORT LinkHighlightImpl final : public LinkHighlight
, public CompositorAnimationDelegate
, public CompositorAnimationPlayerClient {
public:
- static std::unique_ptr<LinkHighlightImpl> create(Node*, WebViewImpl*);
+ static PassOwnPtr<LinkHighlightImpl> create(Node*, WebViewImpl*);
~LinkHighlightImpl() override;
WebContentLayer* contentLayer();
@@ -91,15 +91,15 @@ private:
// size since the last call to this function.
bool computeHighlightLayerPathAndPosition(const LayoutBoxModelObject&);
- std::unique_ptr<WebContentLayer> m_contentLayer;
- std::unique_ptr<WebLayer> m_clipLayer;
+ OwnPtr<WebContentLayer> m_contentLayer;
+ OwnPtr<WebLayer> m_clipLayer;
Path m_path;
Persistent<Node> m_node;
WebViewImpl* m_owningWebViewImpl;
GraphicsLayer* m_currentGraphicsLayer;
bool m_isScrollingGraphicsLayer;
- std::unique_ptr<CompositorAnimationPlayer> m_compositorPlayer;
+ OwnPtr<CompositorAnimationPlayer> m_compositorPlayer;
bool m_geometryNeedsUpdate;
bool m_isAnimating;
« no previous file with comments | « third_party/WebKit/Source/web/InspectorOverlay.cpp ('k') | third_party/WebKit/Source/web/LinkHighlightImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698