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 15 matching lines...) Expand all Loading... |
26 #include "config.h" | 26 #include "config.h" |
27 #include "core/svg/animation/SMILTimeContainer.h" | 27 #include "core/svg/animation/SMILTimeContainer.h" |
28 | 28 |
29 #include "core/animation/AnimationClock.h" | 29 #include "core/animation/AnimationClock.h" |
30 #include "core/animation/AnimationTimeline.h" | 30 #include "core/animation/AnimationTimeline.h" |
31 #include "core/dom/ElementTraversal.h" | 31 #include "core/dom/ElementTraversal.h" |
32 #include "core/frame/FrameView.h" | 32 #include "core/frame/FrameView.h" |
33 #include "core/frame/Settings.h" | 33 #include "core/frame/Settings.h" |
34 #include "core/svg/SVGSVGElement.h" | 34 #include "core/svg/SVGSVGElement.h" |
35 #include "core/svg/animation/SVGSMILElement.h" | 35 #include "core/svg/animation/SVGSMILElement.h" |
| 36 #include <algorithm> |
36 | 37 |
37 namespace blink { | 38 namespace blink { |
38 | 39 |
39 static const double initialFrameDelay = 0.025; | 40 static const double initialFrameDelay = 0.025; |
40 static const double animationPolicyOnceDuration = 3.000; | 41 static const double animationPolicyOnceDuration = 3.000; |
41 | 42 |
42 #if !ENABLE(OILPAN) | 43 #if !ENABLE(OILPAN) |
43 // Every entry-point that calls updateAnimations() should instantiate a | 44 // Every entry-point that calls updateAnimations() should instantiate a |
44 // DiscardScope to prevent deletion of the ownerElement (and hence itself.) | 45 // DiscardScope to prevent deletion of the ownerElement (and hence itself.) |
45 class DiscardScope { | 46 class DiscardScope { |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 | 557 |
557 DEFINE_TRACE(SMILTimeContainer) | 558 DEFINE_TRACE(SMILTimeContainer) |
558 { | 559 { |
559 #if ENABLE(OILPAN) | 560 #if ENABLE(OILPAN) |
560 visitor->trace(m_scheduledAnimations); | 561 visitor->trace(m_scheduledAnimations); |
561 #endif | 562 #endif |
562 visitor->trace(m_ownerSVGElement); | 563 visitor->trace(m_ownerSVGElement); |
563 } | 564 } |
564 | 565 |
565 } | 566 } |
OLD | NEW |