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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/CSSUnparsedValue.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/css/cssom/CSSUnparsedValue.h" 5 #include "core/css/cssom/CSSUnparsedValue.h"
6 6
7 #include "core/css/cssom/CSSStyleVariableReferenceValue.h" 7 #include "core/css/cssom/CSSStyleVariableReferenceValue.h"
8 #include "core/css/parser/CSSTokenizer.h" 8 #include "core/css/parser/CSSTokenizer.h"
9 #include "wtf/text/StringBuilder.h" 9 #include "wtf/text/StringBuilder.h"
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 tokens.append(m_fragments[i].getAsString()); 108 tokens.append(m_fragments[i].getAsString());
109 else if (m_fragments[i].isCSSVariableReferenceValue()) 109 else if (m_fragments[i].isCSSVariableReferenceValue())
110 tokens.append( 110 tokens.append(
111 m_fragments[i].getAsCSSVariableReferenceValue()->variable()); 111 m_fragments[i].getAsCSSVariableReferenceValue()->variable());
112 else 112 else
113 NOTREACHED(); 113 NOTREACHED();
114 } 114 }
115 115
116 CSSTokenizer::Scope scope(tokens.toString()); 116 CSSTokenizer::Scope scope(tokens.toString());
117 117
118 bool isAnimationTainted = false;
118 return CSSVariableReferenceValue::create( 119 return CSSVariableReferenceValue::create(
119 CSSVariableData::create(scope.tokenRange())); 120 CSSVariableData::create(scope.tokenRange(), isAnimationTainted, true));
120 } 121 }
121 122
122 } // namespace blink 123 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StylePropertySet.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698