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

Unified Diff: third_party/WebKit/Source/core/css/PropertyRegistration.cpp

Issue 2323633002: Implement animation tainted custom property values (Closed)
Patch Set: Rebased Created 4 years, 2 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/css/PropertyRegistration.cpp
diff --git a/third_party/WebKit/Source/core/css/PropertyRegistration.cpp b/third_party/WebKit/Source/core/css/PropertyRegistration.cpp
index 20437d4a81ac5c94183f0bc2341a22afb3e27d94..7c3d549452b4b59fa8d9b434751aeddcc72ba9ee 100644
--- a/third_party/WebKit/Source/core/css/PropertyRegistration.cpp
+++ b/third_party/WebKit/Source/core/css/PropertyRegistration.cpp
@@ -90,7 +90,9 @@ void PropertyRegistration::registerProperty(
if (descriptor.hasInitialValue()) {
CSSTokenizer::Scope scope(descriptor.initialValue());
- const CSSValue* initial = syntaxDescriptor.parse(scope.tokenRange());
+ bool isAnimationTainted = false;
+ const CSSValue* initial =
+ syntaxDescriptor.parse(scope.tokenRange(), isAnimationTainted);
if (!initial) {
exceptionState.throwDOMException(
SyntaxError,
@@ -104,7 +106,7 @@ void PropertyRegistration::registerProperty(
return;
}
RefPtr<CSSVariableData> initialVariableData =
- CSSVariableData::create(scope.tokenRange(), false);
+ CSSVariableData::create(scope.tokenRange(), isAnimationTainted, false);
registry.registerProperty(atomicName, syntaxDescriptor,
descriptor.inherits(), initial,
initialVariableData.release());

Powered by Google App Engine
This is Rietveld 408576698