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

Unified Diff: third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.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/CSSSyntaxDescriptor.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp b/third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp
index 2fc81f6c4520b3f0959e6e1c5e8d7d4790199eaa..bfc2041abb7e478ec02881875010be5668d9da91 100644
--- a/third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp
+++ b/third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp
@@ -194,15 +194,19 @@ const CSSValue* consumeSyntaxComponent(const CSSSyntaxComponent& syntax,
return result;
}
-const CSSValue* CSSSyntaxDescriptor::parse(CSSParserTokenRange range) const {
- if (isTokenStream())
- return CSSVariableParser::parseRegisteredPropertyValue(range, false);
+const CSSValue* CSSSyntaxDescriptor::parse(CSSParserTokenRange range,
+ bool isAnimationTainted) const {
+ if (isTokenStream()) {
+ return CSSVariableParser::parseRegisteredPropertyValue(range, false,
+ isAnimationTainted);
+ }
range.consumeWhitespace();
for (const CSSSyntaxComponent& component : m_syntaxComponents) {
if (const CSSValue* result = consumeSyntaxComponent(component, range))
return result;
}
- return CSSVariableParser::parseRegisteredPropertyValue(range, true);
+ return CSSVariableParser::parseRegisteredPropertyValue(range, true,
+ isAnimationTainted);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.h ('k') | third_party/WebKit/Source/core/css/CSSVariableData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698