#include "platform/geometry/IntPoint.h"
#include "platform/graphics/GraphicsLayer.h"
#include "platform/graphics/Path.h"
-#include "public/platform/WebAnimationDelegate.h"
+#include "public/platform/WebCompositorAnimationDelegate.h"
#include "public/platform/WebContentLayer.h"
#include "public/platform/WebContentLayerClient.h"
#include "public/platform/WebLayer.h"
namespace blink {
+class DisplayList;
+class Node;
class RenderLayer;
class RenderObject;
-class Node;
struct WebFloatRect;
struct WebRect;
class WebViewImpl;
-class LinkHighlight FINAL : public WebContentLayerClient, public WebAnimationDelegate, blink::LinkHighlightClient {
+class LinkHighlight FINAL : public WebContentLayerClient, public WebCompositorAnimationDelegate, blink::LinkHighlightClient {
public:
static PassOwnPtr<LinkHighlight> create(Node*, WebViewImpl*);
virtual ~LinkHighlight();
void updateGeometry();
// WebContentLayerClient implementation.
- virtual void paintContents(WebCanvas*, const WebRect& clipRect, bool canPaintLCDText, WebFloatRect& opaque,
- WebContentLayerClient::GraphicsContextStatus = GraphicsContextEnabled) OVERRIDE;
+ virtual void paintContents(WebCanvas*, const WebRect& clipRect, bool canPaintLCDText, WebContentLayerClient::GraphicsContextStatus) OVERRIDE;
- // WebAnimationDelegate implementation.
- virtual void notifyAnimationStarted(double monotonicTime, blink::WebAnimation::TargetProperty) OVERRIDE;
- virtual void notifyAnimationFinished(double monotonicTime, blink::WebAnimation::TargetProperty) OVERRIDE;
+ // WebCompositorAnimationDelegate implementation.
+ virtual void notifyAnimationStarted(double monotonicTime, blink::WebCompositorAnimation::TargetProperty) OVERRIDE;
+ virtual void notifyAnimationFinished(double monotonicTime, blink::WebCompositorAnimation::TargetProperty) OVERRIDE;
// LinkHighlightClient inplementation.
virtual void invalidate() OVERRIDE;
LinkHighlight(Node*, WebViewImpl*);
void releaseResources();
- void computeQuads(Node*, WTF::Vector<FloatQuad>&) const;
+ void computeQuads(RenderObject&, WTF::Vector<FloatQuad>&) const;
RenderLayer* computeEnclosingCompositingLayer();
void clearGraphicsLayerLinkHighlightPointer();
OwnPtr<WebContentLayer> m_contentLayer;
OwnPtr<WebLayer> m_clipLayer;
Path m_path;
+ RefPtr<DisplayList> m_displayList;
RefPtrWillBePersistent<Node> m_node;
WebViewImpl* m_owningWebViewImpl;