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

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

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGURIReference.cpp ('k') | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 ASSERT(animation->timeContainer() == this); 86 ASSERT(animation->timeContainer() == this);
87 87
88 #ifndef NDEBUG 88 #ifndef NDEBUG
89 ASSERT(!m_preventScheduledAnimationsChanges); 89 ASSERT(!m_preventScheduledAnimationsChanges);
90 #endif 90 #endif
91 91
92 ElementAttributePair key(target, attributeName); 92 ElementAttributePair key(target, attributeName);
93 AnimationsVector* scheduled = m_scheduledAnimations.get(key); 93 AnimationsVector* scheduled = m_scheduledAnimations.get(key);
94 ASSERT(scheduled); 94 ASSERT(scheduled);
95 size_t idx = scheduled->find(animation); 95 size_t idx = scheduled->find(animation);
96 ASSERT(idx != notFound); 96 ASSERT(idx != kNotFound);
97 scheduled->remove(idx); 97 scheduled->remove(idx);
98 } 98 }
99 99
100 void SMILTimeContainer::notifyIntervalsChanged() 100 void SMILTimeContainer::notifyIntervalsChanged()
101 { 101 {
102 // Schedule updateAnimations() to be called asynchronously so multiple inter vals 102 // Schedule updateAnimations() to be called asynchronously so multiple inter vals
103 // can change with updateAnimations() only called once at the end. 103 // can change with updateAnimations() only called once at the end.
104 startTimer(0); 104 startTimer(0);
105 } 105 }
106 106
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 animationsToApply[i]->applyResultsToTarget(); 331 animationsToApply[i]->applyResultsToTarget();
332 332
333 #ifndef NDEBUG 333 #ifndef NDEBUG
334 m_preventScheduledAnimationsChanges = false; 334 m_preventScheduledAnimationsChanges = false;
335 #endif 335 #endif
336 336
337 startTimer(earliestFireTime, animationFrameDelay); 337 startTimer(earliestFireTime, animationFrameDelay);
338 } 338 }
339 339
340 } 340 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGURIReference.cpp ('k') | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698