Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1419)

Unified Diff: Source/web/LinkHighlight.cpp

Issue 412123002: Rename WebAnimation to WebCompositorAnimation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Set upstream branch Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/LinkHighlight.cpp
diff --git a/Source/web/LinkHighlight.cpp b/Source/web/LinkHighlight.cpp
index e20c72f98d0b3a39357dd21c9caa9b05ebf010ba..279d1a5688377b4f4d80c545c9a31f5e71add8fa 100644
--- a/Source/web/LinkHighlight.cpp
+++ b/Source/web/LinkHighlight.cpp
@@ -40,7 +40,7 @@
#include "core/rendering/style/ShadowData.h"
#include "platform/graphics/Color.h"
#include "public/platform/Platform.h"
-#include "public/platform/WebAnimationCurve.h"
+#include "public/platform/WebCompositorAnimationCurve.h"
#include "public/platform/WebCompositorSupport.h"
#include "public/platform/WebFloatAnimationCurve.h"
#include "public/platform/WebFloatPoint.h"
@@ -289,7 +289,7 @@ void LinkHighlight::startHighlightAnimationIfNeeded()
// For layout tests we don't fade out.
curve->add(WebFloatKeyframe(fadeDuration + extraDurationRequired, blink::layoutTestMode() ? startOpacity : 0));
- OwnPtr<WebAnimation> animation = adoptPtr(compositorSupport->createAnimation(*curve, WebAnimation::TargetPropertyOpacity));
+ OwnPtr<WebCompositorAnimation> animation = adoptPtr(compositorSupport->createAnimation(*curve, WebCompositorAnimation::TargetPropertyOpacity));
m_contentLayer->layer()->setDrawsContent(true);
m_contentLayer->layer()->addAnimation(animation.leakPtr());
@@ -306,11 +306,11 @@ void LinkHighlight::clearGraphicsLayerLinkHighlightPointer()
}
}
-void LinkHighlight::notifyAnimationStarted(double, blink::WebAnimation::TargetProperty)
+void LinkHighlight::notifyAnimationStarted(double, blink::WebCompositorAnimation::TargetProperty)
{
}
-void LinkHighlight::notifyAnimationFinished(double, blink::WebAnimation::TargetProperty)
+void LinkHighlight::notifyAnimationFinished(double, blink::WebCompositorAnimation::TargetProperty)
{
// Since WebViewImpl may hang on to us for a while, make sure we
// release resources as soon as possible.

Powered by Google App Engine
This is Rietveld 408576698