Chromium Code Reviews| 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 if (m_valueId != CSSValueInternalVariableValue) | |
| 21 return getValueName(m_valueId); | |
| 20 return emptyString(); | 22 return emptyString(); |
|
Timothy Loh
2016/07/29 01:15:06
Do we actually get here? Maybe we can just change
rwlbuis
2016/07/29 01:25:17
Right we should not hit it anymore, will add the D
| |
| 21 } | 23 } |
| 22 | 24 |
| 23 } // namespace blink | 25 } // namespace blink |
| OLD | NEW |