| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 bool canBubble, | 61 bool canBubble, |
| 62 bool cancelable, | 62 bool cancelable, |
| 63 int repeat = -1) | 63 int repeat = -1) |
| 64 : Event(type, canBubble, cancelable), m_repeat(repeat) {} | 64 : Event(type, canBubble, cancelable), m_repeat(repeat) {} |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 int m_repeat; | 67 int m_repeat; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 inline RepeatEvent* toRepeatEvent(Event* event) { | 70 inline RepeatEvent* toRepeatEvent(Event* event) { |
| 71 ASSERT_WITH_SECURITY_IMPLICATION(!event || event->type() == "repeatn"); | 71 SECURITY_DCHECK(!event || event->type() == "repeatn"); |
| 72 return static_cast<RepeatEvent*>(event); | 72 return static_cast<RepeatEvent*>(event); |
| 73 } | 73 } |
| 74 | 74 |
| 75 // This is used for duration type time values that can't be negative. | 75 // This is used for duration type time values that can't be negative. |
| 76 static const double invalidCachedTime = -1.; | 76 static const double invalidCachedTime = -1.; |
| 77 | 77 |
| 78 class ConditionEventListener final : public EventListener { | 78 class ConditionEventListener final : public EventListener { |
| 79 public: | 79 public: |
| 80 static ConditionEventListener* create(SVGSMILElement* animation, | 80 static ConditionEventListener* create(SVGSMILElement* animation, |
| 81 SVGSMILElement::Condition* condition) { | 81 SVGSMILElement::Condition* condition) { |
| (...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1352 DEFINE_TRACE(SVGSMILElement) { | 1352 DEFINE_TRACE(SVGSMILElement) { |
| 1353 visitor->trace(m_targetElement); | 1353 visitor->trace(m_targetElement); |
| 1354 visitor->trace(m_timeContainer); | 1354 visitor->trace(m_timeContainer); |
| 1355 visitor->trace(m_conditions); | 1355 visitor->trace(m_conditions); |
| 1356 visitor->trace(m_syncBaseDependents); | 1356 visitor->trace(m_syncBaseDependents); |
| 1357 SVGElement::trace(visitor); | 1357 SVGElement::trace(visitor); |
| 1358 SVGTests::trace(visitor); | 1358 SVGTests::trace(visitor); |
| 1359 } | 1359 } |
| 1360 | 1360 |
| 1361 } // namespace blink | 1361 } // namespace blink |
| OLD | NEW |