diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
commit | 2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (patch) | |
tree | 988e8c5b116dd0466244ae2fe5af8ee9be926d76 /Source/WebCore/css/CSSTimingFunctionValue.h | |
parent | dd91e772430dc294e3bf478c119ef8d43c0a3358 (diff) | |
download | qtwebkit-2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47.tar.gz |
Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286)
Diffstat (limited to 'Source/WebCore/css/CSSTimingFunctionValue.h')
-rw-r--r-- | Source/WebCore/css/CSSTimingFunctionValue.h | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/Source/WebCore/css/CSSTimingFunctionValue.h b/Source/WebCore/css/CSSTimingFunctionValue.h index 9958a8c21..e544c5ff0 100644 --- a/Source/WebCore/css/CSSTimingFunctionValue.h +++ b/Source/WebCore/css/CSSTimingFunctionValue.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. + * Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -31,20 +31,7 @@ namespace WebCore { -class CSSTimingFunctionValue : public CSSValue { -public: - bool isLinearTimingFunctionValue() const { return classType() == LinearTimingFunctionClass; } - bool isCubicBezierTimingFunctionValue() const { return classType() == CubicBezierTimingFunctionClass; } - bool isStepsTimingFunctionValue() const { return classType() == StepsTimingFunctionClass; } - -protected: - CSSTimingFunctionValue(ClassType classType) - : CSSValue(classType) - { - } -}; - -class CSSLinearTimingFunctionValue : public CSSTimingFunctionValue { +class CSSLinearTimingFunctionValue : public CSSValue { public: static PassRefPtr<CSSLinearTimingFunctionValue> create() { @@ -55,12 +42,12 @@ public: private: CSSLinearTimingFunctionValue() - : CSSTimingFunctionValue(LinearTimingFunctionClass) + : CSSValue(LinearTimingFunctionClass) { } }; -class CSSCubicBezierTimingFunctionValue : public CSSTimingFunctionValue { +class CSSCubicBezierTimingFunctionValue : public CSSValue { public: static PassRefPtr<CSSCubicBezierTimingFunctionValue> create(double x1, double y1, double x2, double y2) { @@ -76,7 +63,7 @@ public: private: CSSCubicBezierTimingFunctionValue(double x1, double y1, double x2, double y2) - : CSSTimingFunctionValue(CubicBezierTimingFunctionClass) + : CSSValue(CubicBezierTimingFunctionClass) , m_x1(x1) , m_y1(y1) , m_x2(x2) @@ -90,7 +77,7 @@ private: double m_y2; }; -class CSSStepsTimingFunctionValue : public CSSTimingFunctionValue { +class CSSStepsTimingFunctionValue : public CSSValue { public: static PassRefPtr<CSSStepsTimingFunctionValue> create(int steps, bool stepAtStart) { @@ -104,7 +91,7 @@ public: private: CSSStepsTimingFunctionValue(int steps, bool stepAtStart) - : CSSTimingFunctionValue(StepsTimingFunctionClass) + : CSSValue(StepsTimingFunctionClass) , m_steps(steps) , m_stepAtStart(stepAtStart) { |