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

Unified Diff: third_party/WebKit/Source/core/animation/InvalidatableInterpolation.h

Issue 1701813002: Make Keyframe::PropertySpecificKeyframes RefCounted (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: InvalidatableInterpolation RefPtrs Created 4 years, 10 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 | « no previous file | third_party/WebKit/Source/core/animation/InvalidatableInterpolation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/InvalidatableInterpolation.h
diff --git a/third_party/WebKit/Source/core/animation/InvalidatableInterpolation.h b/third_party/WebKit/Source/core/animation/InvalidatableInterpolation.h
index 856fe69ec888e60aee021f45139ae82983ab0f14..49e1f3b3a9c45cca64b2099b1098ad62621ad919 100644
--- a/third_party/WebKit/Source/core/animation/InvalidatableInterpolation.h
+++ b/third_party/WebKit/Source/core/animation/InvalidatableInterpolation.h
@@ -20,8 +20,8 @@ public:
static PassRefPtr<InvalidatableInterpolation> create(
PropertyHandle property,
const InterpolationTypes& interpolationTypes,
- const PropertySpecificKeyframe& startKeyframe,
- const PropertySpecificKeyframe& endKeyframe)
+ PassRefPtr<PropertySpecificKeyframe> startKeyframe,
+ PassRefPtr<PropertySpecificKeyframe> endKeyframe)
{
return adoptRef(new InvalidatableInterpolation(property, interpolationTypes, startKeyframe, endKeyframe));
}
@@ -38,13 +38,13 @@ private:
InvalidatableInterpolation(
PropertyHandle property,
const InterpolationTypes& interpolationTypes,
- const PropertySpecificKeyframe& startKeyframe,
- const PropertySpecificKeyframe& endKeyframe)
+ PassRefPtr<PropertySpecificKeyframe> startKeyframe,
+ PassRefPtr<PropertySpecificKeyframe> endKeyframe)
: Interpolation(nullptr, nullptr)
, m_property(property)
, m_interpolationTypes(interpolationTypes)
- , m_startKeyframe(&startKeyframe)
- , m_endKeyframe(&endKeyframe)
+ , m_startKeyframe(startKeyframe)
+ , m_endKeyframe(endKeyframe)
, m_currentFraction(std::numeric_limits<double>::quiet_NaN())
, m_isCached(false)
{ }
@@ -64,8 +64,8 @@ private:
const PropertyHandle m_property;
const InterpolationTypes& m_interpolationTypes;
- const PropertySpecificKeyframe* m_startKeyframe;
- const PropertySpecificKeyframe* m_endKeyframe;
+ RefPtr<PropertySpecificKeyframe> m_startKeyframe;
+ RefPtr<PropertySpecificKeyframe> m_endKeyframe;
double m_currentFraction;
mutable bool m_isCached;
mutable OwnPtr<PrimitiveInterpolation> m_cachedPairConversion;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/InvalidatableInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698