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

Unified Diff: Source/core/animation/ImageStyleInterpolation.h

Issue 1164573002: CSSValue Immediates: Change CSSValue to an object instead of a pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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/ImageStyleInterpolation.h
diff --git a/Source/core/animation/ImageStyleInterpolation.h b/Source/core/animation/ImageStyleInterpolation.h
index cf799089540df6afcc37224046bdda084aaefa4e..414ca825f3c1271e00b03d70ad71800a0c870cb5 100644
--- a/Source/core/animation/ImageStyleInterpolation.h
+++ b/Source/core/animation/ImageStyleInterpolation.h
@@ -13,7 +13,7 @@ class ImageStyleInterpolation : public StyleInterpolation {
public:
static PassRefPtrWillBeRawPtr<ImageStyleInterpolation> create(CSSValue& start, CSSValue& end, CSSPropertyID id)
{
- return adoptRefWillBeNoop(new ImageStyleInterpolation(&start, &end, id));
+ return adoptRefWillBeNoop(new ImageStyleInterpolation(start, end, id));
}
DECLARE_VIRTUAL_TRACE();
@@ -22,15 +22,15 @@ public:
virtual void apply(StyleResolverState&) const override;
private:
- ImageStyleInterpolation(PassRefPtrWillBeRawPtr<CSSValue> start, PassRefPtrWillBeRawPtr<CSSValue> end, CSSPropertyID id)
+ ImageStyleInterpolation(CSSValue start, CSSValue end, CSSPropertyID id)
: StyleInterpolation(InterpolableNumber::create(0.0), InterpolableNumber::create(1.0), id)
, m_initialImage(start)
, m_finalImage(end)
{
}
- RefPtrWillBeMember<CSSValue> m_initialImage;
- RefPtrWillBeMember<CSSValue> m_finalImage;
+ CSSValue m_initialImage;
+ CSSValue m_finalImage;
};
}
« no previous file with comments | « Source/core/animation/ImageSliceStyleInterpolation.cpp ('k') | Source/core/animation/ImageStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698