Chromium Code Reviews| Index: Source/web/LinkHighlight.cpp |
| diff --git a/Source/web/LinkHighlight.cpp b/Source/web/LinkHighlight.cpp |
| index fbfb13f39aac3adf9474534c654bf27ddb54be68..06abda5e5f666982e17bf52d42a4614441ce9453 100644 |
| --- a/Source/web/LinkHighlight.cpp |
| +++ b/Source/web/LinkHighlight.cpp |
| @@ -271,10 +271,11 @@ 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.get()); |
|
jamesr
2013/09/20 18:52:14
this would be clearer if you wrote this line "anim
dshwang
2013/09/20 19:03:58
Ditto.
|
| + animation.clear(); |
| invalidate(); |
| m_owningWebViewImpl->scheduleAnimation(); |