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

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

Issue 1362973004: Rename FROM_HERE to BLINK_FROM_HERE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 2 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 void SMILTimeContainer::cancelAnimationFrame() 295 void SMILTimeContainer::cancelAnimationFrame()
296 { 296 {
297 m_frameSchedulingState = Idle; 297 m_frameSchedulingState = Idle;
298 m_wakeupTimer.stop(); 298 m_wakeupTimer.stop();
299 } 299 }
300 300
301 void SMILTimeContainer::scheduleWakeUp(double delayTime, FrameSchedulingState fr ameSchedulingState) 301 void SMILTimeContainer::scheduleWakeUp(double delayTime, FrameSchedulingState fr ameSchedulingState)
302 { 302 {
303 ASSERT(frameSchedulingState == SynchronizeAnimations || frameSchedulingState == FutureAnimationFrame); 303 ASSERT(frameSchedulingState == SynchronizeAnimations || frameSchedulingState == FutureAnimationFrame);
304 m_wakeupTimer.startOneShot(delayTime, FROM_HERE); 304 m_wakeupTimer.startOneShot(delayTime, BLINK_FROM_HERE);
305 m_frameSchedulingState = frameSchedulingState; 305 m_frameSchedulingState = frameSchedulingState;
306 } 306 }
307 307
308 void SMILTimeContainer::wakeupTimerFired(Timer<SMILTimeContainer>*) 308 void SMILTimeContainer::wakeupTimerFired(Timer<SMILTimeContainer>*)
309 { 309 {
310 ASSERT(m_frameSchedulingState == SynchronizeAnimations || m_frameSchedulingS tate == FutureAnimationFrame); 310 ASSERT(m_frameSchedulingState == SynchronizeAnimations || m_frameSchedulingS tate == FutureAnimationFrame);
311 if (m_frameSchedulingState == FutureAnimationFrame) { 311 if (m_frameSchedulingState == FutureAnimationFrame) {
312 ASSERT(isTimelineRunning()); 312 ASSERT(isTimelineRunning());
313 m_frameSchedulingState = Idle; 313 m_frameSchedulingState = Idle;
314 serviceOnNextFrame(); 314 serviceOnNextFrame();
315 } else { 315 } else {
316 m_frameSchedulingState = Idle; 316 m_frameSchedulingState = Idle;
317 updateAnimationsAndScheduleFrameIfNeeded(elapsed()); 317 updateAnimationsAndScheduleFrameIfNeeded(elapsed());
318 } 318 }
319 } 319 }
320 320
321 void SMILTimeContainer::scheduleAnimationPolicyTimer() 321 void SMILTimeContainer::scheduleAnimationPolicyTimer()
322 { 322 {
323 m_animationPolicyOnceTimer.startOneShot(animationPolicyOnceDuration, FROM_HE RE); 323 m_animationPolicyOnceTimer.startOneShot(animationPolicyOnceDuration, BLINK_F ROM_HERE);
324 } 324 }
325 325
326 void SMILTimeContainer::cancelAnimationPolicyTimer() 326 void SMILTimeContainer::cancelAnimationPolicyTimer()
327 { 327 {
328 if (m_animationPolicyOnceTimer.isActive()) 328 if (m_animationPolicyOnceTimer.isActive())
329 m_animationPolicyOnceTimer.stop(); 329 m_animationPolicyOnceTimer.stop();
330 } 330 }
331 331
332 void SMILTimeContainer::animationPolicyTimerFired(Timer<SMILTimeContainer>*) 332 void SMILTimeContainer::animationPolicyTimerFired(Timer<SMILTimeContainer>*)
333 { 333 {
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 556
557 DEFINE_TRACE(SMILTimeContainer) 557 DEFINE_TRACE(SMILTimeContainer)
558 { 558 {
559 #if ENABLE(OILPAN) 559 #if ENABLE(OILPAN)
560 visitor->trace(m_scheduledAnimations); 560 visitor->trace(m_scheduledAnimations);
561 #endif 561 #endif
562 visitor->trace(m_ownerSVGElement); 562 visitor->trace(m_ownerSVGElement);
563 } 563 }
564 564
565 } 565 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698