| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 } | 127 } |
| 128 return false; | 128 return false; |
| 129 } | 129 } |
| 130 | 130 |
| 131 double x1() const { return m_x1; } | 131 double x1() const { return m_x1; } |
| 132 double y1() const { return m_y1; } | 132 double y1() const { return m_y1; } |
| 133 double x2() const { return m_x2; } | 133 double x2() const { return m_x2; } |
| 134 double y2() const { return m_y2; } | 134 double y2() const { return m_y2; } |
| 135 | 135 |
| 136 TimingFunctionPreset timingFunctionPreset() const { return m_timingFunctionP
reset; } | 136 TimingFunctionPreset timingFunctionPreset() const { return m_timingFunctionP
reset; } |
| 137 | 137 |
| 138 static const CubicBezierTimingFunction* defaultTimingFunction() | |
| 139 { | |
| 140 static const CubicBezierTimingFunction* dtf = create().leakRef(); | |
| 141 return dtf; | |
| 142 } | |
| 143 | |
| 144 private: | 138 private: |
| 145 explicit CubicBezierTimingFunction(TimingFunctionPreset preset = Ease, doubl
e x1 = 0.25, double y1 = 0.1, double x2 = 0.25, double y2 = 1.0) | 139 explicit CubicBezierTimingFunction(TimingFunctionPreset preset = Ease, doubl
e x1 = 0.25, double y1 = 0.1, double x2 = 0.25, double y2 = 1.0) |
| 146 : TimingFunction(CubicBezierFunction) | 140 : TimingFunction(CubicBezierFunction) |
| 147 , m_x1(x1) | 141 , m_x1(x1) |
| 148 , m_y1(y1) | 142 , m_y1(y1) |
| 149 , m_x2(x2) | 143 , m_x2(x2) |
| 150 , m_y2(y2) | 144 , m_y2(y2) |
| 151 , m_timingFunctionPreset(preset) | 145 , m_timingFunctionPreset(preset) |
| 152 { | 146 { |
| 153 } | 147 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 { | 182 { |
| 189 } | 183 } |
| 190 | 184 |
| 191 int m_steps; | 185 int m_steps; |
| 192 bool m_stepAtStart; | 186 bool m_stepAtStart; |
| 193 }; | 187 }; |
| 194 | 188 |
| 195 } // namespace WebCore | 189 } // namespace WebCore |
| 196 | 190 |
| 197 #endif // TimingFunction_h | 191 #endif // TimingFunction_h |
| OLD | NEW |