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

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

Issue 1941403002: Make servicing of SMIL animations require a FrameView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.h ('k') | no next file » | 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 } 402 }
403 403
404 void SMILTimeContainer::serviceOnNextFrame() 404 void SMILTimeContainer::serviceOnNextFrame()
405 { 405 {
406 if (document().view()) { 406 if (document().view()) {
407 document().view()->scheduleAnimation(); 407 document().view()->scheduleAnimation();
408 m_frameSchedulingState = AnimationFrame; 408 m_frameSchedulingState = AnimationFrame;
409 } 409 }
410 } 410 }
411 411
412 void SMILTimeContainer::serviceAnimations(double monotonicAnimationStartTime) 412 void SMILTimeContainer::serviceAnimations()
413 { 413 {
414 if (m_frameSchedulingState != AnimationFrame) 414 if (m_frameSchedulingState != AnimationFrame)
415 return; 415 return;
416 416
417 m_frameSchedulingState = Idle; 417 m_frameSchedulingState = Idle;
418 updateAnimationsAndScheduleFrameIfNeeded(elapsed()); 418 updateAnimationsAndScheduleFrameIfNeeded(elapsed());
419 } 419 }
420 420
421 void SMILTimeContainer::updateAnimationsAndScheduleFrameIfNeeded(SMILTime elapse d, bool seekToTime) 421 void SMILTimeContainer::updateAnimationsAndScheduleFrameIfNeeded(SMILTime elapse d, bool seekToTime)
422 { 422 {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 setElapsed(elapsed().value() + initialFrameDelay); 536 setElapsed(elapsed().value() + initialFrameDelay);
537 } 537 }
538 538
539 DEFINE_TRACE(SMILTimeContainer) 539 DEFINE_TRACE(SMILTimeContainer)
540 { 540 {
541 visitor->trace(m_scheduledAnimations); 541 visitor->trace(m_scheduledAnimations);
542 visitor->trace(m_ownerSVGElement); 542 visitor->trace(m_ownerSVGElement);
543 } 543 }
544 544
545 } // namespace blink 545 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698