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

Side by Side Diff: Source/core/svg/SVGAnimatedTypeAnimator.h

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved.
3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 26 matching lines...) Expand all
37 37
38 class SVGAnimatedTypeAnimator final : public NoBaseWillBeGarbageCollectedFinaliz ed<SVGAnimatedTypeAnimator> { 38 class SVGAnimatedTypeAnimator final : public NoBaseWillBeGarbageCollectedFinaliz ed<SVGAnimatedTypeAnimator> {
39 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 39 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
40 public: 40 public:
41 static PassOwnPtrWillBeRawPtr<SVGAnimatedTypeAnimator> create(SVGAnimationEl ement* animationElement, SVGElement* targetElement) 41 static PassOwnPtrWillBeRawPtr<SVGAnimatedTypeAnimator> create(SVGAnimationEl ement* animationElement, SVGElement* targetElement)
42 { 42 {
43 return adoptPtrWillBeNoop(new SVGAnimatedTypeAnimator(animationElement, targetElement)); 43 return adoptPtrWillBeNoop(new SVGAnimatedTypeAnimator(animationElement, targetElement));
44 } 44 }
45 ~SVGAnimatedTypeAnimator(); 45 ~SVGAnimatedTypeAnimator();
46 46
47 PassRefPtr<SVGPropertyBase> constructFromString(const String&); 47 PassRefPtrWillBeRawPtr<SVGPropertyBase> constructFromString(const String&);
48 48
49 PassRefPtr<SVGPropertyBase> startAnimValAnimation(const WillBeHeapVector<Raw PtrWillBeMember<SVGElement> >&); 49 PassRefPtrWillBeRawPtr<SVGPropertyBase> startAnimValAnimation(const WillBeHe apVector<RawPtrWillBeMember<SVGElement> >&);
50 void stopAnimValAnimation(const WillBeHeapVector<RawPtrWillBeMember<SVGEleme nt> >&); 50 void stopAnimValAnimation(const WillBeHeapVector<RawPtrWillBeMember<SVGEleme nt> >&);
51 PassRefPtr<SVGPropertyBase> resetAnimValToBaseVal(const WillBeHeapVector<Raw PtrWillBeMember<SVGElement> >&); 51 PassRefPtrWillBeRawPtr<SVGPropertyBase> resetAnimValToBaseVal(const WillBeHe apVector<RawPtrWillBeMember<SVGElement> >&);
52 52
53 void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGPrope rtyBase*, SVGPropertyBase*, SVGPropertyBase*, SVGPropertyBase*); 53 void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGPrope rtyBase*, SVGPropertyBase*, SVGPropertyBase*, SVGPropertyBase*);
54 float calculateDistance(const String& fromString, const String& toString); 54 float calculateDistance(const String& fromString, const String& toString);
55 55
56 void calculateFromAndToValues(RefPtr<SVGPropertyBase>& from, RefPtr<SVGPrope rtyBase>& to, const String& fromString, const String& toString); 56 void calculateFromAndToValues(RefPtrWillBeMember<SVGPropertyBase>& from, Ref PtrWillBeMember<SVGPropertyBase>& to, const String& fromString, const String& to String);
57 void calculateFromAndByValues(RefPtr<SVGPropertyBase>& from, RefPtr<SVGPrope rtyBase>& to, const String& fromString, const String& byString); 57 void calculateFromAndByValues(RefPtrWillBeMember<SVGPropertyBase>& from, Ref PtrWillBeMember<SVGPropertyBase>& to, const String& fromString, const String& by String);
58 58
59 void setContextElement(SVGElement* contextElement) { m_contextElement = cont extElement; } 59 void setContextElement(SVGElement* contextElement) { m_contextElement = cont extElement; }
60 AnimatedPropertyType type() const { return m_type; } 60 AnimatedPropertyType type() const { return m_type; }
61 61
62 bool isAnimatingSVGDom() const { return m_animatedProperty; } 62 bool isAnimatingSVGDom() const { return m_animatedProperty; }
63 bool isAnimatingCSSProperty() const { return !m_animatedProperty; } 63 bool isAnimatingCSSProperty() const { return !m_animatedProperty; }
64 64
65 void trace(Visitor*); 65 void trace(Visitor*);
66 66
67 private: 67 private:
68 SVGAnimatedTypeAnimator(SVGAnimationElement*, SVGElement*); 68 SVGAnimatedTypeAnimator(SVGAnimationElement*, SVGElement*);
69 69
70 friend class ParsePropertyFromString; 70 friend class ParsePropertyFromString;
71 PassRefPtr<SVGPropertyBase> createPropertyForAnimation(const String&); 71 PassRefPtrWillBeRawPtr<SVGPropertyBase> createPropertyForAnimation(const Str ing&);
72 PassRefPtr<SVGPropertyBase> resetAnimation(const WillBeHeapVector<RawPtrWill BeMember<SVGElement> >&); 72 PassRefPtrWillBeRawPtr<SVGPropertyBase> resetAnimation(const WillBeHeapVecto r<RawPtrWillBeMember<SVGElement> >&);
73 73
74 AnimatedPropertyType m_type; 74 AnimatedPropertyType m_type;
75 RawPtrWillBeMember<SVGAnimationElement> m_animationElement; 75 RawPtrWillBeMember<SVGAnimationElement> m_animationElement;
76 RawPtrWillBeMember<SVGElement> m_contextElement; 76 RawPtrWillBeMember<SVGElement> m_contextElement;
77 RefPtr<SVGAnimatedPropertyBase> m_animatedProperty; 77 RefPtrWillBeMember<SVGAnimatedPropertyBase> m_animatedProperty;
78 }; 78 };
79 79
80 } // namespace blink 80 } // namespace blink
81 81
82 #endif // SVGAnimatedTypeAnimator_h 82 #endif // SVGAnimatedTypeAnimator_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimatedTransformList.idl ('k') | Source/core/svg/SVGAnimatedTypeAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698