OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/CSSCustomPropertyDeclaration.h" | 5 #include "core/css/CSSCustomPropertyDeclaration.h" |
6 | 6 |
7 #include "core/css/parser/CSSParserTokenRange.h" | 7 #include "core/css/parser/CSSParserTokenRange.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
11 DEFINE_TRACE_AFTER_DISPATCH(CSSCustomPropertyDeclaration) | 11 DEFINE_TRACE_AFTER_DISPATCH(CSSCustomPropertyDeclaration) |
12 { | 12 { |
13 CSSValue::traceAfterDispatch(visitor); | 13 CSSValue::traceAfterDispatch(visitor); |
14 } | 14 } |
15 | 15 |
16 String CSSCustomPropertyDeclaration::customCSSText() const | 16 String CSSCustomPropertyDeclaration::customCSSText() const |
17 { | 17 { |
18 if (m_value) | 18 if (m_value) |
19 return m_value->tokenRange().serialize(); | 19 return m_value->tokenRange().serialize(); |
20 return emptyString(); | 20 DCHECK(m_valueId != CSSValueInternalVariableValue); |
| 21 return getValueName(m_valueId); |
21 } | 22 } |
22 | 23 |
23 } // namespace blink | 24 } // namespace blink |
OLD | NEW |