OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2012 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 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #ifndef CSSTimingFunctionValue_h | 26 #ifndef CSSTimingFunctionValue_h |
27 #define CSSTimingFunctionValue_h | 27 #define CSSTimingFunctionValue_h |
28 | 28 |
29 #include "core/css/CSSValue.h" | 29 #include "core/css/CSSValue.h" |
30 #include "wtf/PassRefPtr.h" | 30 #include "wtf/PassRefPtr.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 class CSSLinearTimingFunctionValue : public CSSValue { | |
35 public: | |
36 static PassRefPtr<CSSLinearTimingFunctionValue> create() | |
37 { | |
38 return adoptRef(new CSSLinearTimingFunctionValue); | |
39 } | |
40 | |
41 String customCssText() const; | |
42 | |
43 bool equals(const CSSLinearTimingFunctionValue&) const { return true; } | |
44 | |
45 private: | |
46 CSSLinearTimingFunctionValue() | |
47 : CSSValue(LinearTimingFunctionClass) | |
48 { | |
49 } | |
50 }; | |
51 | |
52 class CSSCubicBezierTimingFunctionValue : public CSSValue { | 34 class CSSCubicBezierTimingFunctionValue : public CSSValue { |
53 public: | 35 public: |
54 static PassRefPtr<CSSCubicBezierTimingFunctionValue> create(double x1, doubl
e y1, double x2, double y2) | 36 static PassRefPtr<CSSCubicBezierTimingFunctionValue> create(double x1, doubl
e y1, double x2, double y2) |
55 { | 37 { |
56 return adoptRef(new CSSCubicBezierTimingFunctionValue(x1, y1, x2, y2)); | 38 return adoptRef(new CSSCubicBezierTimingFunctionValue(x1, y1, x2, y2)); |
57 } | 39 } |
58 | 40 |
59 String customCssText() const; | 41 String customCssText() const; |
60 | 42 |
61 double x1() const { return m_x1; } | 43 double x1() const { return m_x1; } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 { | 85 { |
104 } | 86 } |
105 | 87 |
106 int m_steps; | 88 int m_steps; |
107 bool m_stepAtStart; | 89 bool m_stepAtStart; |
108 }; | 90 }; |
109 | 91 |
110 } // namespace | 92 } // namespace |
111 | 93 |
112 #endif | 94 #endif |
OLD | NEW |