| 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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 m_cachedRepeatDur = invalidCachedTime; | 555 m_cachedRepeatDur = invalidCachedTime; |
| 556 else if (attrName == SVGNames::repeatCountAttr) | 556 else if (attrName == SVGNames::repeatCountAttr) |
| 557 m_cachedRepeatCount = invalidCachedTime; | 557 m_cachedRepeatCount = invalidCachedTime; |
| 558 else if (attrName == SVGNames::minAttr) | 558 else if (attrName == SVGNames::minAttr) |
| 559 m_cachedMin = invalidCachedTime; | 559 m_cachedMin = invalidCachedTime; |
| 560 else if (attrName == SVGNames::maxAttr) | 560 else if (attrName == SVGNames::maxAttr) |
| 561 m_cachedMax = invalidCachedTime; | 561 m_cachedMax = invalidCachedTime; |
| 562 else if (attrName == SVGNames::attributeNameAttr) | 562 else if (attrName == SVGNames::attributeNameAttr) |
| 563 setAttributeName(constructQualifiedName(this, fastGetAttribute(SVGNames:
:attributeNameAttr))); | 563 setAttributeName(constructQualifiedName(this, fastGetAttribute(SVGNames:
:attributeNameAttr))); |
| 564 else if (attrName.matches(XLinkNames::hrefAttr)) { | 564 else if (attrName.matches(XLinkNames::hrefAttr)) { |
| 565 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 565 SVGElement::InstanceInvalidationGuard invalidationGuard(this); |
| 566 buildPendingResource(); | 566 buildPendingResource(); |
| 567 if (m_targetElement) | 567 if (m_targetElement) |
| 568 clearAnimatedType(m_targetElement); | 568 clearAnimatedType(m_targetElement); |
| 569 } else if (inDocument()) { | 569 } else if (inDocument()) { |
| 570 if (attrName == SVGNames::beginAttr) | 570 if (attrName == SVGNames::beginAttr) |
| 571 beginListChanged(elapsed()); | 571 beginListChanged(elapsed()); |
| 572 else if (attrName == SVGNames::endAttr) | 572 else if (attrName == SVGNames::endAttr) |
| 573 endListChanged(elapsed()); | 573 endListChanged(elapsed()); |
| 574 } | 574 } |
| 575 | 575 |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1324 if (eventType == "repeatn") { | 1324 if (eventType == "repeatn") { |
| 1325 unsigned repeatEventCount = m_repeatEventCountList.first(); | 1325 unsigned repeatEventCount = m_repeatEventCountList.first(); |
| 1326 m_repeatEventCountList.remove(0); | 1326 m_repeatEventCountList.remove(0); |
| 1327 dispatchEvent(RepeatEvent::create(eventType, repeatEventCount)); | 1327 dispatchEvent(RepeatEvent::create(eventType, repeatEventCount)); |
| 1328 } else { | 1328 } else { |
| 1329 dispatchEvent(Event::create(eventType)); | 1329 dispatchEvent(Event::create(eventType)); |
| 1330 } | 1330 } |
| 1331 } | 1331 } |
| 1332 | 1332 |
| 1333 } | 1333 } |
| OLD | NEW |