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

Unified Diff: third_party/WebKit/Source/core/css/CSSVariableData.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/CSSVariableData.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSVariableData.cpp b/third_party/WebKit/Source/core/css/CSSVariableData.cpp
index 84731ec326d81ee572b22a730bf73ae7d80186a2..ae18409d28669627bee8d5152709184eb61e717d 100644
--- a/third_party/WebKit/Source/core/css/CSSVariableData.cpp
+++ b/third_party/WebKit/Source/core/css/CSSVariableData.cpp
@@ -61,8 +61,10 @@ void CSSVariableData::consumeAndUpdateTokens(const CSSParserTokenRange& range) {
}
CSSVariableData::CSSVariableData(const CSSParserTokenRange& range,
+ bool isAnimationTainted,
bool needsVariableResolution)
- : m_needsVariableResolution(needsVariableResolution),
+ : m_isAnimationTainted(isAnimationTainted),
+ m_needsVariableResolution(needsVariableResolution),
m_cachedPropertySet(false) {
ASSERT(!range.atEnd());
consumeAndUpdateTokens(range);
@@ -71,7 +73,7 @@ CSSVariableData::CSSVariableData(const CSSParserTokenRange& range,
const CSSValue* CSSVariableData::parseForSyntax(
const CSSSyntaxDescriptor& syntax) const {
DCHECK(!needsVariableResolution());
- return syntax.parse(tokenRange());
+ return syntax.parse(tokenRange(), m_isAnimationTainted);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSVariableData.h ('k') | third_party/WebKit/Source/core/css/DOMWindowCSS.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698