| Index: Source/web/LinkHighlight.h
|
| diff --git a/Source/web/LinkHighlight.h b/Source/web/LinkHighlight.h
|
| index 09bba690b78f35480c76785a8d6935aafcaea53c..fb20361f0375a224ab15fc0cb22de059617ac67b 100644
|
| --- a/Source/web/LinkHighlight.h
|
| +++ b/Source/web/LinkHighlight.h
|
| @@ -31,6 +31,8 @@
|
| #include "platform/graphics/GraphicsLayer.h"
|
| #include "platform/graphics/Path.h"
|
| #include "public/platform/WebCompositorAnimationDelegate.h"
|
| +#include "public/platform/WebCompositorAnimationPlayer.h"
|
| +#include "public/platform/WebCompositorAnimationPlayerClient.h"
|
| #include "public/platform/WebContentLayer.h"
|
| #include "public/platform/WebContentLayerClient.h"
|
| #include "public/platform/WebLayer.h"
|
| @@ -44,7 +46,7 @@ class Node;
|
| struct WebRect;
|
| class WebViewImpl;
|
|
|
| -class LinkHighlight final : public WebContentLayerClient, public WebCompositorAnimationDelegate, LinkHighlightClient {
|
| +class LinkHighlight final : public WebContentLayerClient, public WebCompositorAnimationDelegate, LinkHighlightClient, WebCompositorAnimationPlayerClient {
|
| public:
|
| static PassOwnPtr<LinkHighlight> create(Node*, WebViewImpl*);
|
| ~LinkHighlight() override;
|
| @@ -67,6 +69,9 @@ public:
|
| WebLayer* layer() override;
|
| void clearCurrentGraphicsLayer() override;
|
|
|
| + // WebCompositorAnimationPlayerClient implementation.
|
| + WebCompositorAnimationPlayer* compositorPlayer() const override;
|
| +
|
| GraphicsLayer* currentGraphicsLayerForTesting() const { return m_currentGraphicsLayer; }
|
|
|
| private:
|
| @@ -88,6 +93,7 @@ private:
|
| RefPtrWillBePersistent<Node> m_node;
|
| WebViewImpl* m_owningWebViewImpl;
|
| GraphicsLayer* m_currentGraphicsLayer;
|
| + OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer;
|
|
|
| bool m_geometryNeedsUpdate;
|
| bool m_isAnimating;
|
|
|