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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 , m_y2(y2) | 56 , m_y2(y2) |
57 { | 57 { |
58 } | 58 } |
59 | 59 |
60 double m_x1; | 60 double m_x1; |
61 double m_y1; | 61 double m_y1; |
62 double m_x2; | 62 double m_x2; |
63 double m_y2; | 63 double m_y2; |
64 }; | 64 }; |
65 | 65 |
| 66 DEFINE_CSS_VALUE_TYPE_CASTS(CubicBezierTimingFunctionValue); |
| 67 |
66 class CSSStepsTimingFunctionValue : public CSSValue { | 68 class CSSStepsTimingFunctionValue : public CSSValue { |
67 public: | 69 public: |
68 static PassRefPtr<CSSStepsTimingFunctionValue> create(int steps, bool stepAt
Start) | 70 static PassRefPtr<CSSStepsTimingFunctionValue> create(int steps, bool stepAt
Start) |
69 { | 71 { |
70 return adoptRef(new CSSStepsTimingFunctionValue(steps, stepAtStart)); | 72 return adoptRef(new CSSStepsTimingFunctionValue(steps, stepAtStart)); |
71 } | 73 } |
72 | 74 |
73 int numberOfSteps() const { return m_steps; } | 75 int numberOfSteps() const { return m_steps; } |
74 bool stepAtStart() const { return m_stepAtStart; } | 76 bool stepAtStart() const { return m_stepAtStart; } |
75 | 77 |
76 String customCssText() const; | 78 String customCssText() const; |
77 | 79 |
78 bool equals(const CSSStepsTimingFunctionValue&) const; | 80 bool equals(const CSSStepsTimingFunctionValue&) const; |
79 | 81 |
80 private: | 82 private: |
81 CSSStepsTimingFunctionValue(int steps, bool stepAtStart) | 83 CSSStepsTimingFunctionValue(int steps, bool stepAtStart) |
82 : CSSValue(StepsTimingFunctionClass) | 84 : CSSValue(StepsTimingFunctionClass) |
83 , m_steps(steps) | 85 , m_steps(steps) |
84 , m_stepAtStart(stepAtStart) | 86 , m_stepAtStart(stepAtStart) |
85 { | 87 { |
86 } | 88 } |
87 | 89 |
88 int m_steps; | 90 int m_steps; |
89 bool m_stepAtStart; | 91 bool m_stepAtStart; |
90 }; | 92 }; |
91 | 93 |
| 94 DEFINE_CSS_VALUE_TYPE_CASTS(StepsTimingFunctionValue); |
| 95 |
92 } // namespace | 96 } // namespace |
93 | 97 |
94 #endif | 98 #endif |
OLD | NEW |