| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |