OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "sky/engine/config.h" | |
6 #include "sky/engine/core/animation/TimingInput.h" | 5 #include "sky/engine/core/animation/TimingInput.h" |
7 | 6 |
8 #include "sky/engine/core/css/parser/BisonCSSParser.h" | 7 #include "sky/engine/core/css/parser/BisonCSSParser.h" |
9 #include "sky/engine/core/css/resolver/CSSToStyleMap.h" | 8 #include "sky/engine/core/css/resolver/CSSToStyleMap.h" |
10 | 9 |
11 namespace blink { | 10 namespace blink { |
12 | 11 |
13 void TimingInput::setStartDelay(Timing& timing, double startDelay) | 12 void TimingInput::setStartDelay(Timing& timing, double startDelay) |
14 { | 13 { |
15 if (std::isfinite(startDelay)) | 14 if (std::isfinite(startDelay)) |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 94 } |
96 | 95 |
97 Timing TimingInput::convert(double duration) | 96 Timing TimingInput::convert(double duration) |
98 { | 97 { |
99 Timing result; | 98 Timing result; |
100 setIterationDuration(result, duration); | 99 setIterationDuration(result, duration); |
101 return result; | 100 return result; |
102 } | 101 } |
103 | 102 |
104 } // namespace blink | 103 } // namespace blink |
OLD | NEW |