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

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

Issue 1120003002: [Oilpan] Migrate most classes under core/animations to Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Resize expect size of Persistent Created 5 years, 7 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/VisibilityStyleInterpolation.h
diff --git a/Source/core/animation/VisibilityStyleInterpolation.h b/Source/core/animation/VisibilityStyleInterpolation.h
index 26740cdcc8b19ec3094dbeb3b7b9810b414755df..49f12ea81de503b1c11a5e2d6c8061426c05db6d 100644
--- a/Source/core/animation/VisibilityStyleInterpolation.h
+++ b/Source/core/animation/VisibilityStyleInterpolation.h
@@ -10,17 +10,16 @@ namespace blink {
class CORE_EXPORT VisibilityStyleInterpolation : public StyleInterpolation {
public:
- static PassRefPtrWillBeRawPtr<VisibilityStyleInterpolation> create(const CSSValue& start, const CSSValue& end, CSSPropertyID id)
+ static VisibilityStyleInterpolation* create(const CSSValue& start, const CSSValue& end, CSSPropertyID id)
{
- RefPtrWillBeRawPtr<VisibilityStyleInterpolation> interpolation = adoptRefWillBeNoop(new VisibilityStyleInterpolation(
- visibilityToInterpolableValue(start), visibilityToInterpolableValue(end), id));
+ VisibilityStyleInterpolation* interpolation = new VisibilityStyleInterpolation(visibilityToInterpolableValue(start), visibilityToInterpolableValue(end), id);
if (!isVisible(start)) {
interpolation->m_notVisible = toCSSPrimitiveValue(start).getValueID();
} else if (!isVisible(end)) {
interpolation->m_notVisible = toCSSPrimitiveValue(end).getValueID();
}
- return interpolation.release();
+ return interpolation;
}
static bool canCreateFrom(const CSSValue&);
@@ -30,13 +29,13 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- VisibilityStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id)
+ VisibilityStyleInterpolation(InterpolableValue* start, InterpolableValue* end, CSSPropertyID id)
: StyleInterpolation(start, end, id)
, m_notVisible(CSSValueVisible)
{
}
- static PassOwnPtrWillBeRawPtr<InterpolableValue> visibilityToInterpolableValue(const CSSValue&);
+ static InterpolableValue* visibilityToInterpolableValue(const CSSValue&);
static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToVisibility(InterpolableValue*, CSSValueID);
CSSValueID m_notVisible;

Powered by Google App Engine
This is Rietveld 408576698