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

Unified Diff: Source/core/animation/ConstantStyleInterpolation.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/ConstantStyleInterpolation.h
diff --git a/Source/core/animation/ConstantStyleInterpolation.h b/Source/core/animation/ConstantStyleInterpolation.h
index 936e37c7d5267f4927fafff5f93b4e4d6848ed1d..6ff60d3f855b4760a87288d0a13a061cb1e5697e 100644
--- a/Source/core/animation/ConstantStyleInterpolation.h
+++ b/Source/core/animation/ConstantStyleInterpolation.h
@@ -12,7 +12,7 @@ namespace blink {
class ConstantStyleInterpolation : public StyleInterpolation {
public:
- static PassRefPtrWillBeRawPtr<ConstantStyleInterpolation> create(CSSValue value, CSSPropertyID id)
+ static PassRefPtrWillBeRawPtr<ConstantStyleInterpolation> create(const CSSValue& value, CSSPropertyID id)
{
return adoptRefWillBeNoop(new ConstantStyleInterpolation(value, id));
}
@@ -29,7 +29,7 @@ public:
}
private:
- ConstantStyleInterpolation(CSSValue value, CSSPropertyID id)
+ ConstantStyleInterpolation(const CSSValue& value, CSSPropertyID id)
: StyleInterpolation(InterpolableList::create(0), InterpolableList::create(0), id)
, m_value(value)
{ }
« no previous file with comments | « Source/core/animation/CSSValueInterpolationType.cpp ('k') | Source/core/animation/DoubleStyleInterpolationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698