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

Unified Diff: Source/core/svg/animation/SVGSMILElement.cpp

Issue 216113003: Oilpan: Replace all remaining adoptRef()s in the Event hierarchy with adoptRefWillBeRefCountedGarba… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Source/modules/speech/SpeechRecognitionEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/animation/SVGSMILElement.cpp
diff --git a/Source/core/svg/animation/SVGSMILElement.cpp b/Source/core/svg/animation/SVGSMILElement.cpp
index 11286db7836e00eea565e6789d61beba01645b29..6a54acaa0c174d381fc9e3d1a2deb1870a8803db 100644
--- a/Source/core/svg/animation/SVGSMILElement.cpp
+++ b/Source/core/svg/animation/SVGSMILElement.cpp
@@ -49,20 +49,24 @@ namespace WebCore {
class RepeatEvent FINAL : public Event {
public:
- static PassRefPtr<RepeatEvent> create(const AtomicString& type, int repeat)
+ static PassRefPtrWillBeRawPtr<RepeatEvent> create(const AtomicString& type, int repeat)
{
- return adoptRef(new RepeatEvent(type, false, false, repeat));
+ return adoptRefWillBeRefCountedGarbageCollected(new RepeatEvent(type, false, false, repeat));
}
virtual ~RepeatEvent() { }
int repeat() const { return m_repeat; }
+
+ virtual void trace(Visitor* visitor) { }
+
protected:
RepeatEvent(const AtomicString& type, bool canBubble, bool cancelable, int repeat = -1)
: Event(type, canBubble, cancelable)
, m_repeat(repeat)
{
}
+
private:
int m_repeat;
};
« no previous file with comments | « no previous file | Source/modules/speech/SpeechRecognitionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698