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

Unified Diff: Source/core/animation/CSSValueInterpolationType.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/CSSValueInterpolationType.h
diff --git a/Source/core/animation/CSSValueInterpolationType.h b/Source/core/animation/CSSValueInterpolationType.h
index 82c12a54ec7992580f9bd74fe26391da1e2b7c56..1a4b9dd55cf55a718eee7495fdb4a9023c2974aa 100644
--- a/Source/core/animation/CSSValueInterpolationType.h
+++ b/Source/core/animation/CSSValueInterpolationType.h
@@ -24,12 +24,12 @@ public:
class DefaultNonInterpolableValue : public NonInterpolableValue {
public:
virtual ~DefaultNonInterpolableValue() { }
- static PassRefPtrWillBeRawPtr<DefaultNonInterpolableValue> create(CSSValue cssValue)
+ static PassRefPtrWillBeRawPtr<DefaultNonInterpolableValue> create(const CSSValue& cssValue)
{
return adoptRefWillBeNoop(new DefaultNonInterpolableValue(cssValue));
}
- CSSValue cssValue() const { return m_cssValue; }
+ const CSSValue& cssValue() const { return m_cssValue; }
DEFINE_INLINE_VIRTUAL_TRACE()
{
@@ -40,7 +40,7 @@ public:
DECLARE_NON_INTERPOLABLE_VALUE_TYPE();
private:
- DefaultNonInterpolableValue(CSSValue cssValue)
+ DefaultNonInterpolableValue(const CSSValue& cssValue)
: m_cssValue(cssValue)
{ }
« no previous file with comments | « Source/build/scripts/templates/StyleBuilderFunctions.h.tmpl ('k') | Source/core/animation/CSSValueInterpolationType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698