| Index: Source/web/LinkHighlight.cpp
|
| diff --git a/Source/web/LinkHighlight.cpp b/Source/web/LinkHighlight.cpp
|
| index f0610b6c610d491f321a62892eb5b27031154caa..3835c23522febf26c630cd6ac0ef2b7c06085606 100644
|
| --- a/Source/web/LinkHighlight.cpp
|
| +++ b/Source/web/LinkHighlight.cpp
|
| @@ -271,10 +271,10 @@ void LinkHighlight::startHighlightAnimationIfNeeded()
|
| // For layout tests we don't fade out.
|
| curve->add(WebFloatKeyframe(fadeDuration + extraDurationRequired, WebKit::layoutTestMode() ? startOpacity : 0));
|
|
|
| - m_animation = adoptPtr(compositorSupport->createAnimation(*curve, WebAnimation::TargetPropertyOpacity));
|
| + OwnPtr<WebAnimation> animation = adoptPtr(compositorSupport->createAnimation(*curve, WebAnimation::TargetPropertyOpacity));
|
|
|
| m_contentLayer->layer()->setDrawsContent(true);
|
| - m_contentLayer->layer()->addAnimation(m_animation.get());
|
| + m_contentLayer->layer()->addAnimation(animation.leakPtr());
|
|
|
| invalidate();
|
| m_owningWebViewImpl->scheduleAnimation();
|
|
|