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

Unified Diff: third_party/WebKit/Source/core/animation/AnimationInputHelpers.cpp

Issue 1771733002: Web Animations: Use of hyphens is no longer supported (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/animation/AnimationInputHelpers.cpp
diff --git a/third_party/WebKit/Source/core/animation/AnimationInputHelpers.cpp b/third_party/WebKit/Source/core/animation/AnimationInputHelpers.cpp
index 4c79bcb8fad539034f51a033e088159a5f897b27..86dec28036221668af35ab3ea0c55660e07423f0 100644
--- a/third_party/WebKit/Source/core/animation/AnimationInputHelpers.cpp
+++ b/third_party/WebKit/Source/core/animation/AnimationInputHelpers.cpp
@@ -32,14 +32,14 @@ static String removeSVGPrefix(const String& property)
CSSPropertyID AnimationInputHelpers::keyframeAttributeToCSSProperty(const String& property, const Document& document)
{
// Disallow prefixed properties.
- if (property[0] == '-' || isASCIIUpper(property[0]))
+ if (isASCIIUpper(property[0]))
return CSSPropertyInvalid;
if (property == "cssFloat")
return CSSPropertyFloat;
StringBuilder builder;
for (size_t i = 0; i < property.length(); ++i) {
if (property[i] == '-')
- Deprecation::countDeprecation(document, UseCounter::WebAnimationHyphenatedProperty);
+ return CSSPropertyInvalid;
if (isASCIIUpper(property[i]))
builder.append('-');
builder.append(property[i]);

Powered by Google App Engine
This is Rietveld 408576698