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

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

Issue 2607403002: Disallow setting invalid values for registered properties via CSSOM (Closed)
Patch Set: fix comments Created 3 years, 12 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/EffectInput.cpp
diff --git a/third_party/WebKit/Source/core/animation/EffectInput.cpp b/third_party/WebKit/Source/core/animation/EffectInput.cpp
index 5109041b294b815486a21a29bbbd20ef36b84e00..fca7e3a932cd78f135a31978bd3cfbd893c3d9af 100644
--- a/third_party/WebKit/Source/core/animation/EffectInput.cpp
+++ b/third_party/WebKit/Source/core/animation/EffectInput.cpp
@@ -95,8 +95,9 @@ void setKeyframeValue(Element& element,
if (cssProperty != CSSPropertyInvalid) {
MutableStylePropertySet::SetResult setResult =
cssProperty == CSSPropertyVariable
- ? keyframe.setCSSPropertyValue(AtomicString(property), value,
- styleSheetContents)
+ ? keyframe.setCSSPropertyValue(
+ AtomicString(property), element.document().propertyRegistry(),
+ value, styleSheetContents)
: keyframe.setCSSPropertyValue(cssProperty, value,
styleSheetContents);
if (!setResult.didParse && executionContext) {

Powered by Google App Engine
This is Rietveld 408576698