| 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 "core/animation/AnimationInputHelpers.h" | 5 #include "core/animation/AnimationInputHelpers.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "core/SVGNames.h" | 8 #include "core/SVGNames.h" |
| 9 #include "core/css/CSSValueList.h" | 9 #include "core/css/CSSValueList.h" |
| 10 #include "core/css/parser/CSSParser.h" | 10 #include "core/css/parser/CSSParser.h" |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 } | 247 } |
| 248 exception_state.ThrowTypeError("'" + string + | 248 exception_state.ThrowTypeError("'" + string + |
| 249 "' is not a valid value for easing"); | 249 "' is not a valid value for easing"); |
| 250 return nullptr; | 250 return nullptr; |
| 251 } | 251 } |
| 252 const CSSValueList* value_list = ToCSSValueList(value); | 252 const CSSValueList* value_list = ToCSSValueList(value); |
| 253 if (value_list->length() > 1) { | 253 if (value_list->length() > 1) { |
| 254 exception_state.ThrowTypeError("Easing may not be set to a list of values"); | 254 exception_state.ThrowTypeError("Easing may not be set to a list of values"); |
| 255 return nullptr; | 255 return nullptr; |
| 256 } | 256 } |
| 257 return CSSToStyleMap::MapAnimationTimingFunction(value_list->Item(0), true); | 257 return CSSToStyleMap::MapAnimationTimingFunction(value_list->Item(0), true, |
| 258 document); |
| 258 } | 259 } |
| 259 | 260 |
| 260 } // namespace blink | 261 } // namespace blink |
| OLD | NEW |