Index: third_party/WebKit/Source/web/LinkHighlightImpl.cpp |
diff --git a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp |
index 0b2b2b2b91e1b5fd06a191fe49b07f551f02fd2a..af9f53ddf0f54762057a84dfffc95cc5f9269ec1 100644 |
--- a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp |
+++ b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp |
@@ -89,7 +89,9 @@ LinkHighlightImpl::LinkHighlightImpl(Node* node, WebViewImpl* owningWebViewImpl) |
m_compositorPlayer->setAnimationDelegate(this); |
if (m_owningWebViewImpl->linkHighlightsTimeline()) |
m_owningWebViewImpl->linkHighlightsTimeline()->playerAttached(*this); |
- m_compositorPlayer->attachLayer(m_contentLayer->layer()); |
+ |
+ m_contentLayer->layer()->setElementId(nextCompositorElementId()); |
+ m_compositorPlayer->attachElement(m_contentLayer->layer()->elementId()); |
m_contentLayer->layer()->setDrawsContent(true); |
m_contentLayer->layer()->setOpacity(1); |
@@ -98,8 +100,8 @@ LinkHighlightImpl::LinkHighlightImpl(Node* node, WebViewImpl* owningWebViewImpl) |
LinkHighlightImpl::~LinkHighlightImpl() |
{ |
- if (m_compositorPlayer->isLayerAttached()) |
- m_compositorPlayer->detachLayer(); |
+ if (m_compositorPlayer->isElementAttached()) |
+ m_compositorPlayer->detachElement(); |
if (m_owningWebViewImpl->linkHighlightsTimeline()) |
m_owningWebViewImpl->linkHighlightsTimeline()->playerDestroyed(*this); |
m_compositorPlayer->setAnimationDelegate(nullptr); |