KHTML
Go to the documentation of this file.
26 #ifndef SMILTIMECONTAINER_H
27 #define SMILTIMECONTAINER_H
33 #include "StringHash.h"
35 #include <wtf/HashSet.h>
36 #include <wtf/PassRefPtr.h>
37 #include <wtf/RefCounted.h>
45 class SMILTimeContainer :
public RefCounted<SMILTimeContainer> {
47 static PassRefPtr<SMILTimeContainer>
create(SVGSVGElement* owner) {
return adoptRef(
new SMILTimeContainer(owner)); }
49 void schedule(SVGSMILElement*);
50 void unschedule(SVGSMILElement*);
52 SMILTime elapsed()
const;
54 bool isActive()
const;
55 bool isPaused()
const;
61 void setDocumentOrderIndexesDirty() { m_documentOrderIndexesDirty =
true; }
64 SMILTimeContainer(SVGSVGElement* owner);
66 void timerFired(Timer<SMILTimeContainer>*);
67 void startTimer(SMILTime fireTime, SMILTime minimumDelay = 0);
68 void updateAnimations(SMILTime elapsed);
70 void updateDocumentOrderIndexes();
71 void sortByPriority(Vector<SVGSMILElement*>& smilElements, SMILTime elapsed);
73 typedef pair<SVGElement*, String> ElementAttributePair;
74 String baseValueFor(ElementAttributePair);
78 double m_accumulatedPauseTime;
80 bool m_documentOrderIndexesDirty;
82 Timer<SMILTimeContainer> m_timer;
84 typedef HashSet<SVGSMILElement*> TimingElementSet;
85 TimingElementSet m_scheduledAnimations;
87 typedef HashMap<ElementAttributePair, String> BaseValueMap;
88 BaseValueMap m_savedBaseValues;
90 SVGSVGElement* m_ownerSVGElement;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 22:03:45 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.