| 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 2b6851eac633fce312be65f1ce56029f34520979..ce39f38634e0b32f3f239b45f5852dadee362d0e 100644
|
| --- a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp
|
| @@ -102,7 +102,8 @@ LinkHighlightImpl::LinkHighlightImpl(Node* node, WebViewImpl* owningWebViewImpl)
|
| LinkHighlightImpl::~LinkHighlightImpl()
|
| {
|
| if (m_compositorPlayer) {
|
| - m_compositorPlayer->detachLayer();
|
| + if (m_compositorPlayer->isLayerAttached())
|
| + m_compositorPlayer->detachLayer();
|
| if (m_owningWebViewImpl->linkHighlightsTimeline())
|
| m_owningWebViewImpl->linkHighlightsTimeline()->playerDestroyed(*this);
|
| m_compositorPlayer->setAnimationDelegate(nullptr);
|
|
|