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

Unified Diff: Source/core/animation/animatable/AnimatableImage.h

Issue 1238943004: CSSValue Immediates: Replace CSSValue usage with const references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_1
Patch Set: Rebase Created 5 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/core/animation/animatable/AnimatableImage.h
diff --git a/Source/core/animation/animatable/AnimatableImage.h b/Source/core/animation/animatable/AnimatableImage.h
index 9914b8d378226936dd477dd24b130af20fb974d5..d7d7b283ae427ec4802e05f5a0dba662f1c8f28d 100644
--- a/Source/core/animation/animatable/AnimatableImage.h
+++ b/Source/core/animation/animatable/AnimatableImage.h
@@ -40,11 +40,11 @@ namespace blink {
class AnimatableImage final : public AnimatableValue {
public:
virtual ~AnimatableImage() { }
- static PassRefPtrWillBeRawPtr<AnimatableImage> create(CSSValue value)
+ static PassRefPtrWillBeRawPtr<AnimatableImage> create(const CSSValue& value)
{
return adoptRefWillBeNoop(new AnimatableImage(value));
}
- CSSValue toCSSValue() const { return m_value; }
+ const CSSValue& toCSSValue() const { return m_value; }
DEFINE_INLINE_VIRTUAL_TRACE()
{
@@ -57,7 +57,7 @@ protected:
virtual bool usesDefaultInterpolationWith(const AnimatableValue*) const override;
private:
- AnimatableImage(CSSValue value)
+ AnimatableImage(const CSSValue& value)
: m_value(value)
{
}
« no previous file with comments | « Source/core/animation/ListStyleInterpolationTest.cpp ('k') | Source/core/animation/animatable/AnimatableImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698