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..3d8f0549126e78275efa29703f9438fdb0dad806 100644 |
--- a/third_party/WebKit/Source/core/animation/AnimationInputHelpers.cpp |
+++ b/third_party/WebKit/Source/core/animation/AnimationInputHelpers.cpp |
@@ -36,10 +36,15 @@ CSSPropertyID AnimationInputHelpers::keyframeAttributeToCSSProperty(const String |
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); |
+ // Disallow hyphenated properties. |
+ if (property[i] == '-') { |
+ if (cssPropertyID(property) != CSSPropertyInvalid) |
+ Deprecation::countDeprecation(document, UseCounter::WebAnimationHyphenatedProperty); |
+ return CSSPropertyInvalid; |
+ } |
if (isASCIIUpper(property[i])) |
builder.append('-'); |
builder.append(property[i]); |