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

Unified Diff: Source/core/animation/KeyframeEffectModel.cpp

Issue 137943002: Update more core classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | Source/core/css/CSSBasicShapes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/KeyframeEffectModel.cpp
diff --git a/Source/core/animation/KeyframeEffectModel.cpp b/Source/core/animation/KeyframeEffectModel.cpp
index f3c0bd09ceaef2f68e845cdf58e49bbc32cfbbc9..6dba05887e98ae91f2f5703db119c04b3e393a19 100644
--- a/Source/core/animation/KeyframeEffectModel.cpp
+++ b/Source/core/animation/KeyframeEffectModel.cpp
@@ -38,17 +38,17 @@ namespace {
using namespace WebCore;
-class ReplaceCompositableValue : public AnimationEffect::CompositableValue {
+class ReplaceCompositableValue FINAL : public AnimationEffect::CompositableValue {
public:
static PassRefPtr<ReplaceCompositableValue> create(const AnimatableValue* value)
{
return adoptRef(new ReplaceCompositableValue(value));
}
- virtual bool dependsOnUnderlyingValue() const
+ virtual bool dependsOnUnderlyingValue() const OVERRIDE
{
return false;
}
- virtual PassRefPtr<AnimatableValue> compositeOnto(const AnimatableValue* underlyingValue) const
+ virtual PassRefPtr<AnimatableValue> compositeOnto(const AnimatableValue* underlyingValue) const OVERRIDE
{
return PassRefPtr<AnimatableValue>(m_value);
}
@@ -60,17 +60,17 @@ private:
RefPtr<AnimatableValue> m_value;
};
-class AddCompositableValue : public AnimationEffect::CompositableValue {
+class AddCompositableValue FINAL : public AnimationEffect::CompositableValue {
public:
static PassRefPtr<AddCompositableValue> create(const AnimatableValue* value)
{
return adoptRef(new AddCompositableValue(value));
}
- virtual bool dependsOnUnderlyingValue() const
+ virtual bool dependsOnUnderlyingValue() const OVERRIDE
{
return true;
}
- virtual PassRefPtr<AnimatableValue> compositeOnto(const AnimatableValue* underlyingValue) const
+ virtual PassRefPtr<AnimatableValue> compositeOnto(const AnimatableValue* underlyingValue) const OVERRIDE
{
return AnimatableValue::add(underlyingValue, m_value.get());
}
@@ -82,17 +82,17 @@ private:
RefPtr<AnimatableValue> m_value;
};
-class BlendedCompositableValue : public AnimationEffect::CompositableValue {
+class BlendedCompositableValue FINAL : public AnimationEffect::CompositableValue {
public:
static PassRefPtr<BlendedCompositableValue> create(const AnimationEffect::CompositableValue* before, const AnimationEffect::CompositableValue* after, double fraction)
{
return adoptRef(new BlendedCompositableValue(before, after, fraction));
}
- virtual bool dependsOnUnderlyingValue() const
+ virtual bool dependsOnUnderlyingValue() const OVERRIDE
{
return m_dependsOnUnderlyingValue;
}
- virtual PassRefPtr<AnimatableValue> compositeOnto(const AnimatableValue* underlyingValue) const
+ virtual PassRefPtr<AnimatableValue> compositeOnto(const AnimatableValue* underlyingValue) const OVERRIDE
{
return AnimatableValue::interpolate(m_before->compositeOnto(underlyingValue).get(), m_after->compositeOnto(underlyingValue).get(), m_fraction);
}
« no previous file with comments | « no previous file | Source/core/css/CSSBasicShapes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698