Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(562)

Side by Side Diff: third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: temp Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698