| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 protected: | 130 protected: |
| 131 enum BeginOrEnd { Begin, End }; | 131 enum BeginOrEnd { Begin, End }; |
| 132 | 132 |
| 133 void addInstanceTime( | 133 void addInstanceTime( |
| 134 BeginOrEnd, | 134 BeginOrEnd, |
| 135 SMILTime, | 135 SMILTime, |
| 136 SMILTimeWithOrigin::Origin = SMILTimeWithOrigin::ParserOrigin); | 136 SMILTimeWithOrigin::Origin = SMILTimeWithOrigin::ParserOrigin); |
| 137 | 137 |
| 138 void setInactive() { m_activeState = Inactive; } | 138 void setInactive() { m_activeState = Inactive; } |
| 139 | 139 |
| 140 void setTargetElement(SVGElement*); |
| 141 |
| 140 // Sub-classes may need to take action when the target is changed. | 142 // Sub-classes may need to take action when the target is changed. |
| 141 virtual void setTargetElement(SVGElement*); | 143 virtual void willChangeAnimationTarget(); |
| 142 | 144 virtual void didChangeAnimationTarget(); |
| 143 void schedule(); | |
| 144 void unscheduleIfScheduled(); | |
| 145 | 145 |
| 146 QualifiedName m_attributeName; | 146 QualifiedName m_attributeName; |
| 147 | 147 |
| 148 private: | 148 private: |
| 149 void buildPendingResource() override; | 149 void buildPendingResource() override; |
| 150 void clearResourceAndEventBaseReferences(); | 150 void clearResourceAndEventBaseReferences(); |
| 151 void clearConditions(); | 151 void clearConditions(); |
| 152 | 152 |
| 153 virtual void startedActiveInterval() = 0; | 153 virtual void startedActiveInterval() = 0; |
| 154 void endedActiveInterval(); | 154 void endedActiveInterval(); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 element.hasTagName(SVGNames::animateMotionTag) || | 295 element.hasTagName(SVGNames::animateMotionTag) || |
| 296 element.hasTagName(SVGNames::animateTransformTag) || | 296 element.hasTagName(SVGNames::animateTransformTag) || |
| 297 element.hasTagName((SVGNames::discardTag)); | 297 element.hasTagName((SVGNames::discardTag)); |
| 298 } | 298 } |
| 299 | 299 |
| 300 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); | 300 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); |
| 301 | 301 |
| 302 } // namespace blink | 302 } // namespace blink |
| 303 | 303 |
| 304 #endif // SVGSMILElement_h | 304 #endif // SVGSMILElement_h |
| OLD | NEW |