| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |