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

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

Issue 2798393005: Rewrite references to "wtf/" to "platform/wtf/" in core/animation. (Closed)
Patch Set: Created 3 years, 8 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"
11 #include "core/css/parser/CSSVariableParser.h" 11 #include "core/css/parser/CSSVariableParser.h"
12 #include "core/css/resolver/CSSToStyleMap.h" 12 #include "core/css/resolver/CSSToStyleMap.h"
13 #include "core/frame/Deprecation.h" 13 #include "core/frame/Deprecation.h"
14 #include "core/svg/SVGElement.h" 14 #include "core/svg/SVGElement.h"
15 #include "core/svg/animation/SVGSMILElement.h" 15 #include "core/svg/animation/SVGSMILElement.h"
16 #include "wtf/text/StringBuilder.h" 16 #include "platform/wtf/text/StringBuilder.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 const char kSVGPrefix[] = "svg-"; 20 const char kSVGPrefix[] = "svg-";
21 const unsigned kSVGPrefixLength = sizeof(kSVGPrefix) - 1; 21 const unsigned kSVGPrefixLength = sizeof(kSVGPrefix) - 1;
22 22
23 static bool isSVGPrefixed(const String& property) { 23 static bool isSVGPrefixed(const String& property) {
24 return property.startsWith(kSVGPrefix); 24 return property.startsWith(kSVGPrefix);
25 } 25 }
26 26
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 } 251 }
252 const CSSValueList* valueList = toCSSValueList(value); 252 const CSSValueList* valueList = toCSSValueList(value);
253 if (valueList->length() > 1) { 253 if (valueList->length() > 1) {
254 exceptionState.throwTypeError("Easing may not be set to a list of values"); 254 exceptionState.throwTypeError("Easing may not be set to a list of values");
255 return nullptr; 255 return nullptr;
256 } 256 }
257 return CSSToStyleMap::mapAnimationTimingFunction(valueList->item(0), true); 257 return CSSToStyleMap::mapAnimationTimingFunction(valueList->item(0), true);
258 } 258 }
259 259
260 } // namespace blink 260 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698