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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 timedElement->applyResultsToTarget(); | 507 timedElement->applyResultsToTarget(); |
508 | 508 |
509 #if ENABLE(ASSERT) | 509 #if ENABLE(ASSERT) |
510 m_preventScheduledAnimationsChanges = false; | 510 m_preventScheduledAnimationsChanges = false; |
511 #endif | 511 #endif |
512 | 512 |
513 for (const auto& timedElement : animationsToApply) { | 513 for (const auto& timedElement : animationsToApply) { |
514 if (timedElement->isConnected() && timedElement->isSVGDiscardElement()) { | 514 if (timedElement->isConnected() && timedElement->isSVGDiscardElement()) { |
515 SVGElement* targetElement = timedElement->targetElement(); | 515 SVGElement* targetElement = timedElement->targetElement(); |
516 if (targetElement && targetElement->isConnected()) { | 516 if (targetElement && targetElement->isConnected()) { |
517 targetElement->remove(IGNORE_EXCEPTION); | 517 targetElement->remove(IGNORE_EXCEPTION_FOR_TESTING); |
518 DCHECK(!targetElement->isConnected()); | 518 DCHECK(!targetElement->isConnected()); |
519 } | 519 } |
520 | 520 |
521 if (timedElement->isConnected()) { | 521 if (timedElement->isConnected()) { |
522 timedElement->remove(IGNORE_EXCEPTION); | 522 timedElement->remove(IGNORE_EXCEPTION_FOR_TESTING); |
523 DCHECK(!timedElement->isConnected()); | 523 DCHECK(!timedElement->isConnected()); |
524 } | 524 } |
525 } | 525 } |
526 } | 526 } |
527 return earliestFireTime; | 527 return earliestFireTime; |
528 } | 528 } |
529 | 529 |
530 void SMILTimeContainer::advanceFrameForTesting() { | 530 void SMILTimeContainer::advanceFrameForTesting() { |
531 setElapsed(elapsed() + initialFrameDelay); | 531 setElapsed(elapsed() + initialFrameDelay); |
532 } | 532 } |
533 | 533 |
534 DEFINE_TRACE(SMILTimeContainer) { | 534 DEFINE_TRACE(SMILTimeContainer) { |
535 visitor->trace(m_scheduledAnimations); | 535 visitor->trace(m_scheduledAnimations); |
536 visitor->trace(m_ownerSVGElement); | 536 visitor->trace(m_ownerSVGElement); |
537 } | 537 } |
538 | 538 |
539 } // namespace blink | 539 } // namespace blink |
OLD | NEW |