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; |