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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h

Issue 2027933002: Allow transitions on background-size with positionally matched keywords (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Inline is required Created 4 years, 7 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 | « third_party/WebKit/LayoutTests/animations/interpolation/webkit-mask-size-interpolation-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h b/third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h
index 8ff14ad2cc94096aa53672d62ef8ee100406d344..eeb4ad718154feea9e2b7cd62fc6d503c7a59629 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h
@@ -59,7 +59,7 @@ protected:
return defaultInterpolateTo(this, value, fraction);
}
- bool usesDefaultInterpolationWith(const AnimatableValue*) const override { return true; }
+ bool usesDefaultInterpolationWith(const AnimatableValue*) const override;
private:
explicit AnimatableUnknown(CSSValue* value)
@@ -81,6 +81,12 @@ inline bool AnimatableUnknown::equalTo(const AnimatableValue* value) const
return m_value == unknown->m_value || m_value->equals(*unknown->m_value);
}
+inline bool AnimatableUnknown::usesDefaultInterpolationWith(const AnimatableValue* value) const
+{
+ const AnimatableUnknown& unknown = toAnimatableUnknown(*value);
+ return !m_value->equals(*unknown.m_value);
+}
+
} // namespace blink
#endif // AnimatableUnknown_h
« no previous file with comments | « third_party/WebKit/LayoutTests/animations/interpolation/webkit-mask-size-interpolation-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698