summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/animation/SMILTime.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/animation/SMILTime.h')
-rw-r--r--Source/WebCore/svg/animation/SMILTime.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/WebCore/svg/animation/SMILTime.h b/Source/WebCore/svg/animation/SMILTime.h
index 4e7f5e263..e79b5b34f 100644
--- a/Source/WebCore/svg/animation/SMILTime.h
+++ b/Source/WebCore/svg/animation/SMILTime.h
@@ -23,16 +23,15 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef SMILTime_h
-#define SMILTime_h
-
-#if ENABLE(SVG)
+#pragma once
#include <algorithm>
-#include <wtf/MathExtras.h>
+#include <cmath>
namespace WebCore {
+const double SMILAnimationFrameDelay = 1.0 / 60;
+
class SMILTime {
public:
SMILTime() : m_time(0) { }
@@ -96,7 +95,4 @@ SMILTime operator-(const SMILTime&, const SMILTime&);
// So multiplying times does not make too much sense but SMIL defines it for duration * repeatCount
SMILTime operator*(const SMILTime&, const SMILTime&);
-}
-
-#endif // ENABLE(SVG)
-#endif // SMILTime_h
+} // namespace WebCore