| 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 27 matching lines...) Expand all Loading... |
| 38 #include "wtf/text/StringHash.h" | 38 #include "wtf/text/StringHash.h" |
| 39 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class Document; | 43 class Document; |
| 44 class SVGElement; | 44 class SVGElement; |
| 45 class SVGSMILElement; | 45 class SVGSMILElement; |
| 46 class SVGSVGElement; | 46 class SVGSVGElement; |
| 47 | 47 |
| 48 class SMILTimeContainer : public RefCountedWillBeGarbageCollectedFinalized<SMILT
imeContainer> { | 48 class SMILTimeContainer : public GarbageCollectedFinalized<SMILTimeContainer> { |
| 49 public: | 49 public: |
| 50 static PassRefPtrWillBeRawPtr<SMILTimeContainer> create(SVGSVGElement& owner
) { return adoptRefWillBeNoop(new SMILTimeContainer(owner)); } | 50 static RawPtr<SMILTimeContainer> create(SVGSVGElement& owner) { return new S
MILTimeContainer(owner); } |
| 51 ~SMILTimeContainer(); | 51 ~SMILTimeContainer(); |
| 52 | 52 |
| 53 void schedule(SVGSMILElement*, SVGElement*, const QualifiedName&); | 53 void schedule(SVGSMILElement*, SVGElement*, const QualifiedName&); |
| 54 void unschedule(SVGSMILElement*, SVGElement*, const QualifiedName&); | 54 void unschedule(SVGSMILElement*, SVGElement*, const QualifiedName&); |
| 55 void notifyIntervalsChanged(); | 55 void notifyIntervalsChanged(); |
| 56 | 56 |
| 57 SMILTime elapsed() const; | 57 SMILTime elapsed() const; |
| 58 | 58 |
| 59 bool isPaused() const; | 59 bool isPaused() const; |
| 60 bool isStarted() const; | 60 bool isStarted() const; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 double m_resumeTime; | 124 double m_resumeTime; |
| 125 double m_accumulatedActiveTime; | 125 double m_accumulatedActiveTime; |
| 126 double m_presetStartTime; | 126 double m_presetStartTime; |
| 127 | 127 |
| 128 FrameSchedulingState m_frameSchedulingState; | 128 FrameSchedulingState m_frameSchedulingState; |
| 129 bool m_documentOrderIndexesDirty; | 129 bool m_documentOrderIndexesDirty; |
| 130 | 130 |
| 131 Timer<SMILTimeContainer> m_wakeupTimer; | 131 Timer<SMILTimeContainer> m_wakeupTimer; |
| 132 Timer<SMILTimeContainer> m_animationPolicyOnceTimer; | 132 Timer<SMILTimeContainer> m_animationPolicyOnceTimer; |
| 133 | 133 |
| 134 using ElementAttributePair = std::pair<RawPtrWillBeWeakMember<SVGElement>, Q
ualifiedName>; | 134 using ElementAttributePair = std::pair<WeakMember<SVGElement>, QualifiedName
>; |
| 135 using AnimationsLinkedHashSet = WillBeHeapLinkedHashSet<RawPtrWillBeWeakMemb
er<SVGSMILElement>>; | 135 using AnimationsLinkedHashSet = HeapLinkedHashSet<WeakMember<SVGSMILElement>
>; |
| 136 using GroupedAnimationsMap = WillBeHeapHashMap<ElementAttributePair, OwnPtrW
illBeMember<AnimationsLinkedHashSet>>; | 136 using GroupedAnimationsMap = HeapHashMap<ElementAttributePair, Member<Animat
ionsLinkedHashSet>>; |
| 137 GroupedAnimationsMap m_scheduledAnimations; | 137 GroupedAnimationsMap m_scheduledAnimations; |
| 138 | 138 |
| 139 RawPtrWillBeMember<SVGSVGElement> m_ownerSVGElement; | 139 Member<SVGSVGElement> m_ownerSVGElement; |
| 140 | 140 |
| 141 #if ENABLE(ASSERT) | 141 #if ENABLE(ASSERT) |
| 142 bool m_preventScheduledAnimationsChanges; | 142 bool m_preventScheduledAnimationsChanges; |
| 143 #endif | 143 #endif |
| 144 }; | 144 }; |
| 145 } // namespace blink | 145 } // namespace blink |
| 146 | 146 |
| 147 #endif // SMILTimeContainer_h | 147 #endif // SMILTimeContainer_h |
| OLD | NEW |