| 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 "platform/wtf/text/StringBuilder.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 StringView FindVariableName(CSSParserTokenRange& range) { | 15 StringView FindVariableName(CSSParserTokenRange& range) { |
| 16 range.ConsumeWhitespace(); | 16 range.ConsumeWhitespace(); |
| 17 return range.Consume().Value(); | 17 return range.Consume().Value(); |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 } | 86 } |
| 87 } | 87 } |
| 88 | 88 |
| 89 CSSTokenizer tokenizer(tokens.ToString()); | 89 CSSTokenizer tokenizer(tokens.ToString()); |
| 90 return CSSVariableReferenceValue::Create(CSSVariableData::Create( | 90 return CSSVariableReferenceValue::Create(CSSVariableData::Create( |
| 91 tokenizer.TokenRange(), false /* isAnimationTainted */, | 91 tokenizer.TokenRange(), false /* isAnimationTainted */, |
| 92 true /* needsVariableResolution */)); | 92 true /* needsVariableResolution */)); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace blink | 95 } // namespace blink |
| OLD | NEW |