Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: third_party/WebKit/Source/core/animation/AnimationInputHelpers.cpp

Issue 2927123005: Deprecate step timing with position 'middle' (Closed)
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698