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

Unified Diff: Source/core/animation/DeferredLegacyStyleInterpolation.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/DeferredLegacyStyleInterpolation.h
diff --git a/Source/core/animation/DeferredLegacyStyleInterpolation.h b/Source/core/animation/DeferredLegacyStyleInterpolation.h
index 993d03761436ef8d23142898a16b5b7fa546f27f..21fd7a85b6e83be6f6723cf386b8c3beb8c35039 100644
--- a/Source/core/animation/DeferredLegacyStyleInterpolation.h
+++ b/Source/core/animation/DeferredLegacyStyleInterpolation.h
@@ -21,7 +21,7 @@ class CSSValueList;
class CORE_EXPORT DeferredLegacyStyleInterpolation : public StyleInterpolation {
public:
- static PassRefPtrWillBeRawPtr<DeferredLegacyStyleInterpolation> create(PassRefPtrWillBeRawPtr<CSSValue> start, PassRefPtrWillBeRawPtr<CSSValue> end, CSSPropertyID id)
+ static PassRefPtrWillBeRawPtr<DeferredLegacyStyleInterpolation> create(NullableCSSValue start, NullableCSSValue end, CSSPropertyID id)
{
return adoptRefWillBeNoop(new DeferredLegacyStyleInterpolation(start, end, id));
}
@@ -43,7 +43,7 @@ public:
virtual bool isDeferredLegacyStyleInterpolation() const override final { return true; }
private:
- DeferredLegacyStyleInterpolation(PassRefPtrWillBeRawPtr<CSSValue> start, PassRefPtrWillBeRawPtr<CSSValue> end, CSSPropertyID id)
+ DeferredLegacyStyleInterpolation(NullableCSSValue start, NullableCSSValue end, CSSPropertyID id)
: StyleInterpolation(InterpolableNumber::create(0), InterpolableNumber::create(1), id)
, m_startCSSValue(start)
, m_endCSSValue(end)
@@ -51,8 +51,8 @@ private:
{
}
- RefPtrWillBeMember<CSSValue> m_startCSSValue;
- RefPtrWillBeMember<CSSValue> m_endCSSValue;
+ NullableCSSValue m_startCSSValue;
+ NullableCSSValue m_endCSSValue;
mutable RefPtrWillBeMember<LegacyStyleInterpolation> m_innerInterpolation;
mutable bool m_outdated;
};
« no previous file with comments | « Source/core/animation/ConstantStyleInterpolation.h ('k') | Source/core/animation/DeferredLegacyStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698