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

Side by Side Diff: Source/core/svg/animation/SVGSMILElement.cpp

Issue 219283007: Oilpan: have RepeatEvent::trace() delegate to Event::trace() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 public: 51 public:
52 static PassRefPtrWillBeRawPtr<RepeatEvent> create(const AtomicString& type, int repeat) 52 static PassRefPtrWillBeRawPtr<RepeatEvent> create(const AtomicString& type, int repeat)
53 { 53 {
54 return adoptRefWillBeRefCountedGarbageCollected(new RepeatEvent(type, fa lse, false, repeat)); 54 return adoptRefWillBeRefCountedGarbageCollected(new RepeatEvent(type, fa lse, false, repeat));
55 } 55 }
56 56
57 virtual ~RepeatEvent() { } 57 virtual ~RepeatEvent() { }
58 58
59 int repeat() const { return m_repeat; } 59 int repeat() const { return m_repeat; }
60 60
61 virtual void trace(Visitor* visitor) { } 61 virtual void trace(Visitor* visitor) OVERRIDE
62 {
63 Event::trace(visitor);
64 }
62 65
63 protected: 66 protected:
64 RepeatEvent(const AtomicString& type, bool canBubble, bool cancelable, int r epeat = -1) 67 RepeatEvent(const AtomicString& type, bool canBubble, bool cancelable, int r epeat = -1)
65 : Event(type, canBubble, cancelable) 68 : Event(type, canBubble, cancelable)
66 , m_repeat(repeat) 69 , m_repeat(repeat)
67 { 70 {
68 } 71 }
69 72
70 private: 73 private:
71 int m_repeat; 74 int m_repeat;
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 if (eventType == "repeatn") { 1324 if (eventType == "repeatn") {
1322 unsigned repeatEventCount = m_repeatEventCountList.first(); 1325 unsigned repeatEventCount = m_repeatEventCountList.first();
1323 m_repeatEventCountList.remove(0); 1326 m_repeatEventCountList.remove(0);
1324 dispatchEvent(RepeatEvent::create(eventType, repeatEventCount)); 1327 dispatchEvent(RepeatEvent::create(eventType, repeatEventCount));
1325 } else { 1328 } else {
1326 dispatchEvent(Event::create(eventType)); 1329 dispatchEvent(Event::create(eventType));
1327 } 1330 }
1328 } 1331 }
1329 1332
1330 } 1333 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698